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.
Possible to use two different servers on one domain?
Possible to use two different servers on one domain?
Hi ,
I have the following setup with Vesta CP on two servers:
Server1 - serving Domain1.com
Server2 - DNS server clustered from domain1.com and hosting domain2.com
Now , i have two domains , domain1.com and domain2.com. I am hosting domain1.com on server1 and domain2.com on server2. I have created A records for domain2.com to point to server2. and also DNS cluster in enabled.
Now if server1 goes down , my server2 keeps working because DNS is working because of the DNS cluster.
My question is that , is it possible to add domain1.com and domain2.com on both the server1 and server2 , so that if anyone of the server goes down , the other server automatically takes on the load.
Perhaps adding two IP addresses in the A records of the domain1.com and domain2.com will do the job?
Any help will be appreciated.
I have the following setup with Vesta CP on two servers:
Server1 - serving Domain1.com
Server2 - DNS server clustered from domain1.com and hosting domain2.com
Now , i have two domains , domain1.com and domain2.com. I am hosting domain1.com on server1 and domain2.com on server2. I have created A records for domain2.com to point to server2. and also DNS cluster in enabled.
Now if server1 goes down , my server2 keeps working because DNS is working because of the DNS cluster.
My question is that , is it possible to add domain1.com and domain2.com on both the server1 and server2 , so that if anyone of the server goes down , the other server automatically takes on the load.
Perhaps adding two IP addresses in the A records of the domain1.com and domain2.com will do the job?
Any help will be appreciated.
Re: Possible to use two different servers on one domain?
You can add two A record on two different servers, but also you need configure mysql as multi-master, sync: data folder and session store by himself
Re: Possible to use two different servers on one domain?
hi ,demian wrote:You can add two A record on two different servers, but also you need configure mysql as multi-master, sync: data folder and session store by himself
can you please tell me how would i acheive this? I dont want MysQL , DNS is already clustered so i would only need apache to work this way
1) Adding two ip's with a comma or something to the DNS record of domain.com
or
2) two A records with same domain.com with different ip's
thanks
thanks
Re: Possible to use two different servers on one domain?
I'm afraid two A records won't give you redundancy, it will just split the traffic.
I think you need a LoadBalancer to do what you're looking to do.
I think you need a LoadBalancer to do what you're looking to do.