Page 1 of 1

Two domains on the same user/ip

Posted: Mon Sep 17, 2018 7:17 am
by prxbl
I have added two domains on my vestacp instance, under the same user and I only have one ip address on the server.
I have created two dns entries for each of the domains and it looks like this:

Code: Select all

domain1.com
ns1.domain1.com
192.168.1.10
template: child-ns

domain2.com
ns1.domain2.com
192.168.1.10
template: child-ns
The problem is, domain2.com allows accessing paths existing on domain1.com.
If I have for example www.domain1.com/about , I can also access that page from this url www.domain2.com/about.

I would like the two domains to be separate and not allow accessing pages on domain1 through domain2.
What am I doing wrong here? How can I fix this?

Thanks!

Re: Two domains on the same user/ip

Posted: Mon Sep 17, 2018 8:13 am
by mehargags
Pls explain a bit in clarity.

You can run several sites on one IP... no problems. Its a standard thing.

Re: Two domains on the same user/ip

Posted: Mon Sep 17, 2018 8:15 am
by prxbl
mehargags wrote:
Mon Sep 17, 2018 8:13 am
Pls explain a bit in clarity.

You can run several sites on one IP... no problems. Its a standard thing.
Let me know what info you would need to better understand the problem.

Re: Two domains on the same user/ip

Posted: Tue Sep 25, 2018 11:06 am
by MAN5
Provide your exact domain names & problamatic full urls.
So here we all can see where is your issue...

Re: Two domains on the same user/ip

Posted: Sun Sep 30, 2018 12:08 pm
by skamasle
This can happen only in two ways

You have 2 dns zones, but only one site added as domain

So if you not have both domains added in vesta panel you get that issue

Please add domain1.com and domain2.com to vestacp in same way under "web" and under "DNS" then rebuild apache vhosts from panel and dns too

This isnt a bug