I have multiple virtual host setup within Apache, each of which are named virtual. They are all working fine, but if I type only the IP address into the browser, it looks like the server returns the first virtual host listed.
How can I control the default site directory if only IP is entered? I'd like the default page within /var/www/html to open. This is a CentOS 5.3 installation.
Some settings I have are like this:
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
.... options .....
</Directory>
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin
admin@emailaddress.com
DocumentRoot /var/www/website1
ServerName
www.website1.com
ServerAlias website1.com
ErrorLog logs/website1-error.log
CustomLog logs/website1-access.log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
admin@emailaddress.com
DocumentRoot /var/www/website2
ServerName
www.website2.com
ServerAlias website2.com
ErrorLog logs/website2-error.log
CustomLog logs/website2-access.log common
</VirtualHost>