The DocumentRoot defined inside a Virtual Host block has nothing to do with the "default" DocumentRoot that is found outside the Virtual Blocks.
In particular,
httpd.conf
Code:
# etc etc
DocumentRoot /www # "default" documentroot
<VirtualHost *>
#etc etc
ServerName vhostname
DcoumentRoot /vhostname
</VirtualHost>
As for this example the DocumentRoot of vhostname is /vhostname.
Code:
#etc etc
<VirtualHost *>
#etc etc
ServerName vhostname
DcoumentRoot /www/vhostname
</VirtualHost>
As for this example the DocumentRoot of vhostname is /www/vhostname.
That said,
>>Would my VHost Root be:
>>/www/vhostname
>>or just:
>>/vhostname
It's what you specified inside the VirtualHost block.
If you did forget to specify the DocumentRoot inside the VH block you will receive a warning when running Apache and the "default" DocumentRoot will be used instead ( that happen under win2000/apache 1.3.27, but it should be the same under *nix too ).

pippo
Bookmarks