Why will a website load from any IP address installed into DA?

beansbaxter

Verified User
Joined
Mar 17, 2004
Messages
218
Location
WA
There are 2 IP's added within DirectAdmin - IP_1 and IP_2.

IP_1 is a shared server IP address.

IP_2 is a shared IP address assigned to a Reseller account.

The Reseller account can assign users with either IP_1 or IP_2.

A domain name is assigned to IP_2. When the A Record is changed at the Registrar DNS Level to either IP_1 or IP_2, the website loads up correctly.

How can I make it so that the server only displays the website from the one IP address assigned to the user, not from any IP address installed onto the server?

I'm running DA on CentoOS 5.5 if it matters.

Thanks in advance.
 
Websites should only load when the correct IP# is used. Are you using DNS at your registrar? Have you tested to make sure you're reaching different IP#s? It may take as long as forty-eight hours for your registrar's DNS to change across the 'net.

Jeff
 
Yes, I am using the DNS at my registrar.

From my computer, I ping the domain name and it shows the old IP address and the website still loads up. If I change the host file on my computer to look at the new IP address and flush my DNS cache, then when I load the site it comes up correctly (since the site was moved to that new IP). But when I change my host file back and reflush my DNS cache, it still loads correctly even though when I ping it, it shows the old IP address.

The only thing I can think of is that both IP's are in the same block of IP's using the same Gateway and Subnet Mask so maybe it's getting routed by domain name no matter what. That's just conjecture as I have nothing to support this.
 
Having the domain and ip addresses would make this a lot easier.

Your apache may be set up to listen on all ip's for all domains.
 
Back
Top