2 domains with same IP

Zordon

Verified User
Joined
Dec 11, 2009
Messages
13
Hi,
I want to host 2 domains on the same IP (with same user). But when I enter www.domain2.com it always displays the content of www.domain1.com (in the address bar the browser still says domain2). But if the index.html file of domain2 is newer than the one of domain 1 everything works fine. Is this some sort of bug or misconfiguration?
In other words I always have to upload the index file of domain2 again after editing the index file of domain1

The strange thing is, that when I enter www.domain2.com/page2.html (page2.html is only in the ftp directory of the second domain) it displays the correct page (always, no matter which file is newer).

Or could it be because the DNS are on a different server?
I have a directAdmin account on Server A with the name servers on it. Server A has in his DNS management the same IP for domain1 and 2. On Server B (where both domains are located, also with DirectAdmin) I have the same DNS management setting again.
Is this "forwarding strategy" wrong?

Thanks for your help.
 
You need to add both domains seperated. You can do that with 'Domain Setup' to add them in 1 account or just create 2 accounts with each different domain.

Also maybe you could give us more information like 'how did you add those 2 domains', so we can see if that is maybe wrong.
 
Back
Top