I just got a new cloud server and while setting it up, I can access the web root by pointing my browser to the IP address of my server, but the domain names are still propagating so when I go to them, they do not resolve.
When I do point my browser to the IP address of my server, it is actually resolving to the first VirtualHost that I set up which should not be the root folder. This VirtualHost should show up when I go to ipaddress/path, not just ipaddress.
Server setup:
Host: Rackspace Cloud Server
OS: CentOS 6
VirtualHosts:
<VirtualHost *:80>
ServerAdmin www.wphax.com@gmail.com
ServerName www.wphax.com
ServerAlias wphax.com *.wphax.com
DocumentRoot /var/www/wphaxcom
ErrorLog /var/www/wphaxcom/error.log
CustomLog /var/www/wphaxcom/access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin www.wphax.com@gmail.com
ServerName www.dnadvanced.com
ServerAlias dnadvanced.com *.dnadvanced.com
DocumentRoot /var/www/dnadvancedcom
ErrorLog /var/www/dnadvancedcom/error.log
CustomLog /var/www/dnadvancedcom/access.log combined
</VirtualHost>
Any ideas what could cause this, and how I could set it up so the root directory is not accessible by entering the IP address, but the domain names will resolve correctly to their specified folders? Thanks.