I have several web sites, all set up in http-vhosts.conf
with their respective ServerName
and DocumentRoot
, they are working fine and dandy.
But when I visit the server's IP address URL, I get back the files in the first virtual host, rather than Apache serving from where I would expect, the http.conf
file's DocumentRoot
.
How can I configure Apache so visiting the server by IP address, whether external or loopback, does not return the first VirtualHost?
Here's the first VirtualHost, which I'm currently getting back as the response if I visit the web server by IP:
<VirtualHost *:80>
ServerName "delaneatallent.com"
ServerAlias "www.delaneatallent.com"
DocumentRoot "/Library/WebServer/Documents/delanea"
</VirtualHost>
Using Apache 2.2.14 on OS X, if that matters.
:wq