Apache virtual host documentroot in other folders
Posted
by
giuseppe
on Server Fault
See other posts from Server Fault
or by giuseppe
Published on 2011-06-24T15:11:35Z
Indexed on
2011/06/25
16:23 UTC
Read the original article
Hit count: 280
apache
|virtualhost
I am trying to set up a couple ov VritualHost in my Apache, but I would like to put the DocumentRoot of these virtual host on folders outside the basic www folder. It happens that I get alwasy "Permission Denied". My httpd.conf follows: NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /home/giuseppe/www
ServerName www.example.com/www
ErrorLog logs/host.www.projects-error_log
CustomLog logs/dummy-host.example.com-access_log common
<Directory "/home/giuseppe/www">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /home/developper
ServerName www.example.com
ErrorLog logs/host.developper-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
© Server Fault or respective owner