Page 1 of 1

2 Vesta Servers & Domain Pass Over - Ubuntu

Posted: Mon Jan 27, 2020 7:34 am
by Vegas10128
Hello Vesta Community!

Currently i have 2 Vesta Servers Running Ubuntu 16.04 LTS

My Primary server has plenty of domains and websites, and recently made an 2nd Vesta CP Server on the local network. I am able to add domains to the 2nd server,

The goal for this project is for the user to type (myexamplewebsite .com) and that request goes to the primary server (because its port forwarded) and the primary server is able to take that request and pass it over to the 2nd VestaCP server because thats where the website and domain are actually hosted.

I have tried adding the domain into the DNS Records of the Primary VestaCP Server, and pointed it to the local ip address of the 2nd VestaCP server but have no luck.
when typing in the website into the browser, it will only display the first website hosted into the Primary VestaCP server.

Any ideas i could do?
Am i going about this solution the wrong way?

Thank you for your help!

Re: 2 Vesta Servers & Domain Pass Over - Ubuntu

Posted: Wed Jan 29, 2020 7:12 pm
by skamasle
Hi

I not understand your goal

But if you have your DNS pointed to server A and you whant your server A forward trafic to server B maybe you whant a proxy pass in nginx template

So make a proxy pass in nginx instead of go to local server go to server B

Or you need some load balancer ?

Or just request to A and A forward to B ? ( with proxy pass you can do it )

Or as we are in DNS secion you need just change your A record to point IP to server B

You can manage all your sites inserver A and make some changes in your DNS entre CNAME / A / AAAA and point it to server B in determinated domains