Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section DNS Server
  • Search

Two domains on the same user/ip

Questions regarding the DNS Server
BIND
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
prxbl
Posts: 17
Joined: Fri Aug 14, 2015 5:28 pm

Two domains on the same user/ip
  • Quote

Post by prxbl » 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:

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!
Last edited by prxbl on Mon Sep 17, 2018 8:16 am, edited 1 time in total.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Two domains on the same user/ip
  • Quote

Post by mehargags » 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.
Top

prxbl
Posts: 17
Joined: Fri Aug 14, 2015 5:28 pm

Re: Two domains on the same user/ip
  • Quote

Post by prxbl » Mon Sep 17, 2018 8:15 am

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.
Top

MAN5
Posts: 86
Joined: Sun Jan 31, 2016 4:14 am

Os: Ubuntu 15x
Web: apache + nginx
Re: Two domains on the same user/ip
  • Quote

Post by MAN5 » Tue Sep 25, 2018 11:06 am

Provide your exact domain names & problamatic full urls.
So here we all can see where is your issue...
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Two domains on the same user/ip
  • Quote

Post by skamasle » Sun Sep 30, 2018 12:08 pm

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
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “DNS Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password