I'm having some troubles with setting up my webserver (Centos 5.8). It's a brand new server and I'm trying to set a vhost to the following dir:
However whenever I restart httpd I get the following warning: Code:
Starting httpd: Warning: DocumentRoot [/home/exo/public_html] does not exist
Yes the directory does exist. So whenever I visit the domain exo-l.com it gives me a 403 error.
This is my config file (I put this inside my httpd.conf because the files in conf.d were not included for some reason. Or at least my newly created vhost conf file, but that has 0 priority for now)
<VirtualHost *:80> DocumentRoot /home/exo/public_html ServerName www.exo-l.com ServerAlias exo-l.com <Directory /home/exo/public_html> Order allow,deny Allow from all </Directory> </VirtualHost
I'm completely clueless because this should work as far as I know.
httpd is being run as apache:apache
i tried chowning the public_html directory (also recursively) to exo:apache, apache:apache, root:root with no success. chmod 777 doesn't do anything either.
a tail from the log:
[Sat Oct 13 15:10:04 2012] [error] [client 82.***.***.61] (13)Permission denied: access to / denied [Sat Oct 13 15:10:04 2012] [error] [client 82.***.***.61] (13)Permission denied: access to / denied
I also found something about selinux and that disabling it might help, but do I really want to do that?