I am using Centos6.3 and I have configure apache using the Slicehost tutorial.
My configuration is the following:
<VirtualHost *:80>
ServerName christabellehotel.com
ServerAlias www.christabellehotel.com
DirectoryIndex index.php
DocumentRoot /home/sites/christabellehotel.com
LogLevel warn
ErrorLog /home/sites/christabellehotel.com/error.log
CustomLog /home/sites/christabellehotel.com/access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerName akteabeach.com
ServerAlias www.akteabeach.com
DirectoryIndex index.php
DocumentRoot /home/sites/akteabeach.com
LogLevel warn
ErrorLog /home/sites/akteabeach.com/error.log
CustomLog /home/sites/akteabeach.com/access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerName 198.199.125.69
DirectoryIndex index.php
DocumentRoot /home/sites/
LogLevel warn
ErrorLog /home/sites/error.log
CustomLog /home/sites/access.log combined
</VirtualHost>
The problem is that when I open http://christabellehotel.com/ I cannot see tha virtual host which I configure and which is the following: http://198.199.125.69/christabellehotel.com
Helpful information:
# /usr/sbin/httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443 198.199.125.69 (/etc/httpd/conf.d/ssl.conf:74)
*:80 is a NameVirtualHost
default server christabellehotel.com (/etc/httpd/conf/httpd.conf:1023)
port 80 namevhost christabellehotel.com (/etc/httpd/conf/httpd.conf:1023)
alias www.christabellehotel.com
port 80 namevhost akteabeach.com (/etc/httpd/conf/httpd.conf:1034)
alias www.akteabeach.com
port 80 namevhost 198.199.125.69 (/etc/httpd/conf/httpd.conf:1044)
Syntax OK
NameVirtualHost *:80