[FC3] Apache virtual servers werken niet

Pagina: 1
Acties:

  • DiLDoG
  • Registratie: Oktober 2002
  • Laatst online: 14-11-2025
Ik als linux newb probeer een virtual server te configureren op mijn linux bakje. maar om een of andere reden kan hij de documentroot niet vinden.

code:
1
2
3
4
5
6
[root@localhost httpdocs]# /etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Warning: DocumentRoot [/home/vhosts/joris.magicfly.nl/httpdocs] does not exist
                                                           [  OK  ]
[root@localhost httpdocs]# pwd
/home/vhosts/joris.magicfly.nl/httpdocs



Ik heb hem met webmin geconfigureerd:
Defines the default settings for all other virtual servers, and processes any unhandled requests.
Address Any
Port Any
Server Name Automatic
Document Root /var/www/html

Handles the name-based server joris.magicfly.nl on address joris.magicfly.nl.
Address joris.magicfly.nl
Port Any
Server Name joris.magicfly.nl
Document Root /home/vhosts/joris.magicfly.nl/httpdocs
html en httpdocs hebben de zelfde rechten, dus dat is het ook niet.
Kijk ik nou zo scheef of klopt er hier iets niet?

  • weijl
  • Registratie: Juli 2002
  • Niet online
hebben de directories voor jou httpdocs wel de juiste rechten?

ik denk dat je van het probleem af bent als je /home/vhosts aan de groep 'www-data' toevoegd.

[ Voor 9% gewijzigd door weijl op 28-02-2005 23:47 . Reden: taalfoutje ]


  • DiLDoG
  • Registratie: Oktober 2002
  • Laatst online: 14-11-2025
Ja daar had ik ook al naar gekeken...

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[root@localhost www][root@localhost /]# ls /var/www/ -al
total 56
drwxr-xr-x   7 root root 4096 Nov 11 16:38 .
drwxr-xr-x  22 root root 4096 Feb 28 12:46 ..
drwxr-xr-x   2 root root 4096 Nov 11 16:38 cgi-bin
drwxr-xr-x   3 root root 4096 Feb 27 23:04 error
drwxr-xr-x   2 root root 4096 Nov 11 16:38 html
drwxr-xr-x   3 root root 4096 Feb 27 23:07 icons
drwxr-xr-x  13 root root 4096 Feb 27 23:01 manual


[root@localhost /]# ls /home/vhosts/joris.magicfly.nl/ -al
total 32
drwxr-xr-x  4 root root 4096 Feb 28 16:30 .
drwxr-xr-x  3 root root 4096 Feb 28 16:29 ..
drwxr-xr-x  2 root root 4096 Feb 28 16:40 httpdocs
drwxr-xr-x  2 root root 4096 Feb 28 16:30 logs


Ze hebben allebij toch gewoon zelfde owner en group??

  • DiLDoG
  • Registratie: Oktober 2002
  • Laatst online: 14-11-2025
hmmm kickje?
ik kom er echt niet uit. heeft er iemand nog suggesties?

  • weijl
  • Registratie: Juli 2002
  • Niet online
heb je de 'gewone' config voor me? niet die webmin.. want daar kan ik niet veel mee.

  • Plato-II
  • Registratie: Mei 2002
  • Laatst online: 01-11-2018
DiLDoG schreef op dinsdag 01 maart 2005 @ 13:12:
code:
1
2
3
4
5
6
[root@localhost www][root@localhost /]# ls /var/www/ -al
(...)
drwxr-xr-x   2 root root 4096 Nov 11 16:38 html

[root@localhost /]# ls /home/vhosts/joris.magicfly.nl/ -al
drwxr-xr-x  2 root root 4096 Feb 28 16:40 httpdocs


Ze hebben allebij toch gewoon zelfde owner en group??
De mappen html en httpdocs hebben wel dezelfde privileges, maar ik zou ook eens controleren of Apache leesrechten (of executabe rechten) heeft op de hogere directories (en dan voornamelijk /home/vhosts/). Heb je voor vhosts een aparte gebruiker aangemaakt? Dan kan het namelijk goed zijn de dat de webserver /home/vhosts/joris.magicfly.nl/ niet kan bereiken door het ontbreken van (lees- of executable) permissie.

  • weijl
  • Registratie: Juli 2002
  • Niet online
dat is eigenlijk exact wat ik met mijn eerste reply bedoelde..

/home aan de groep 'root' toevoegen en vhosts ook.. dan zou het probleem opgelost moeten zijn, indien jou vhost config goed is.

ik maakte uit je reply daarop uit dat dat OK was, maar door de reply hierboven twijfel ik sterk. je dir 'joris.magicfly.nl' staat idd goed qua permissies, maar de hogere (miss beter woord idd) dir's wsl niet.
Pagina: 1