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 General Discussion
  • Search

Possible to use two different servers on one domain?

General questions about VestaCP
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
ahmiq
Posts: 43
Joined: Mon Jan 13, 2014 10:58 am
Contact:
Contact ahmiq
Website

Possible to use two different servers on one domain?
  • Quote

Post by ahmiq » Mon Feb 17, 2014 10:52 am

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

demian
Posts: 543
Joined: Thu May 16, 2013 5:19 am

Re: Possible to use two different servers on one domain?
  • Quote

Post by demian » Mon Feb 17, 2014 11:36 am

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
Top

ahmiq
Posts: 43
Joined: Mon Jan 13, 2014 10:58 am
Contact:
Contact ahmiq
Website

Re: Possible to use two different servers on one domain?
  • Quote

Post by ahmiq » Mon Feb 17, 2014 4:14 pm

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
hi ,

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
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Possible to use two different servers on one domain?
  • Quote

Post by skid » Wed Feb 19, 2014 8:55 pm

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


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “General Discussion”



  • 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