We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Two domains on the same user/ip
Two domains on the same user/ip
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!
Last edited by prxbl on Mon Sep 17, 2018 8:16 am, edited 1 time in total.
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Two domains on the same user/ip
Pls explain a bit in clarity.
You can run several sites on one IP... no problems. Its a standard thing.
You can run several sites on one IP... no problems. Its a standard thing.
Re: Two domains on the same user/ip
Provide your exact domain names & problamatic full urls.
So here we all can see where is your issue...
So here we all can see where is your issue...
Re: Two domains on the same user/ip
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
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