I'm migrating from a shared server environment to a VPS. The VPS is running Apache 2.0 under CentOS. Right now the VPS has just an IP address.
Before moving all of the files over I wanted to run a small test. I brought the three files that comprise the home page of my domain, including one named index.html Then it's the usual story, I still see the CentOS Apache 2 Test page.
All three files are in /var/www/html
The permissions for the files are 0644 and 0755 for the directories.
The user apache owns everything.
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
# This should be changed to whatever you set DocumentRoot to.
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
DirectoryIndex index.html index.shtml index.html.var index.php index.htm
DocumentRoot had originally been set to another directory for the domain name and not
the IP address within <VirtualHost>, but changing that so they are both /var/www/html makes no difference.
The error log shows this:
(13)Permission denied: access to /index.php denied
(13)Permission denied: access to /index.html denied
(13)Permission denied: access to /index.shtml denied
(13)Permission denied: access to /index.html.var denied
No mention of index.htm When I tried using index.htm it still didn't work.
Explicitly using http://xxx.xx.xxx.xxx/index.html
brings up the standard 403 page.
Setting the file and directory permissions to 0777 makes no difference. Creating a php version of index.html doesn't work.
I've even tried using .htaccess to define index.html as the default file. The existence of an empty .htaccess file made no difference either.
The really odd thing is when I changed the welcome.conf file. I commented out every line and still get the CentOS test page.
I'm sure it has to be something really freaking obvious that I'm missing.