I'm trying to get two websites on the same server to use different IP addresses. I've set up a virtual IP and set up the the virtual host. I restarted the network after adding the interface, and restarted apache after adding the vhost.
However, the default IP address is still being resolved for the 2nd site. What am I doing wrong?
SERVER
CentOS release 6.3 (el6.x86_64 GNU/Linux)
IFCONFIG
eth0 Link encap:Ethernet
inet addr:12.34.567.89 Bcast:12.34.567.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:1 Link encap:Ethernet
inet addr:12.34.567.90 Bcast:12.34.567.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
HTTP CONF
NameVirtualHost 12.34.567.89
NameVirtualHost 12.34.567.90
<VirtualHost 12.34.567.89>
DocumentRoot /var/www/html
ServerName website1.com
</VirtualHost>
<VirtualHost 12.34.567.90>
DocumentRoot /var/www/html
ServerName website2.com
</VirtualHost>
PING
# ping website2.com
PING website2.com (12.34.567.89) 56(84) bytes of data.
If I browse 12.34.567.90, it points to the wrong website: website1.com instead of website2.com
Any help would be appreciated as I've been at this for weeks.
Note: Specific IP addresses have been simplified and non-related content removed.