Two domains on the same user/ip
Posted: Mon Sep 17, 2018 7:17 am
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:
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!
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
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!