I recently upgraded a machine to 8.10 to check it for problems with the software were working on, and I ran into this problem: the httpd.conf file was overwritten.
In putting it back together I noticed that local virtual hosts don't seem to be responding correctly.
For instance, on this machine if we go to:
an alias in the httpd.conf file correctly routes the request to it's correct place, and
http://localhost/ (or http://192.168.1.3/)
correctly goes to the "It worked!" page (indicated by the DocumentRoot directive)
On the same machine a virtual host for phptest has been set in the httpd.conf file:
however going to:
takes me to the same place as localhost (the "It worked!" page)
I tried making modifications to the httpd.conf file, however it looks as if the DocumentRoot directive is being ignored within the VirtualHost directive.
I'm sure that something else must have gotten overwritten/changed in the update, but I can't for the life of me figure out what it is.
Here's my httpd.conf file:
also, here's my /etc/hosts file:
# Alias for wiki
Alias /wiki "/var/www/wiki/"
Options Indexes FollowSymLinks MultiViews ExecCGI
Allow from all
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback