Hey guys,
I'm having some troubles with setting up my webserver. It's a brand new server and I'm trying to set a vhost to the following dir:
/home/exo/public_html
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 (inside httpd.conf because the vhost conf is not being included, that issues will be discussed in another thread once i get this working since it has uber priority)
Code:
<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:
Code:
[Sat Oct 13 15:09:47 2012] [error] [client 82.***.***.61] (13)Permission denied: access to / denied
[Sat Oct 13 15:09:47 2012] [error] [client 82.***.***.61] (13)Permission denied: access to / denied
[Sat Oct 13 15:09:48 2012] [error] [client 82.***.***.61] (13)Permission denied: access to / denied
[Sat Oct 13 15:10:03 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
[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
[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?