I've got a standard build of RHEL6 and I used to be able to browse to the server's DocumentRoot using the IP address.
I've since added these two vhosts (just the top section is shown). For some reason, now when I access the server's IP address, the Vhost answers and the wrong DocumentRoot is used.
I don't really want to explicitly define a Vhost for /var/www/html.
Another note.. I have added NameVirtualHost *:80 to httpd.conf
Any ideas why the vhosts are answering this?
Thanks
==> axxx-http.conf <==
<VirtualHost *:80>
ServerAdmin beren@xxyy.com
ServerName xxyy.com
ServerAlias www.xxyy.com
DocumentRoot /var/www/site
<Directory /var/www/site>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
==> axxx-ssl.conf <==
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName xxyy.com
ServerAlias www.xxyy.com
ServerAlias admin.xxyy.com
DocumentRoot /var/www/site
<Directory /var/www/site>
Options Indexes FollowSymLinks MultiViews
AllowOverride All