Putting up a brand new server and will be virtual hosting several domains. I am getting the following error in my error_log file when I try to access index.html for a virtual server:
==> error_log <==
[Sat Dec 27 23:12:51 2008] [error] [client 64.81.53.147] (13)Permission denied: access to /index.html denied
Permissions on the index.html are currently 755:
ls -l
total 4
-rwxrwxrwx 1 apache apache 15 2008-12-27 21:06 index.html
and the directory is 755
Here's the part of httpd.conf that I changed:
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin
webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost *:80>
# ServerAdmin
webmaster@dummy-host.example.com
DocumentRoot /home/jek/www/fred
ServerName fred.com:80
ServerAlias
www.fred.com
ErrorLog /var/log/httpd/error_fred_log
CustomLog /var/log/httpd/access_fred_log common
</VirtualHost>