Solved

How to setup Second Site Hosing for backup if primary site is down

Posted on 2008-06-16
5
213 Views
Last Modified: 2013-11-19
How do I setup a backup web host where if the primary webhost is down people get redirected to the backup website host?
0
Comment
Question by:fbetag
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:albuitra
ID: 21794290
There are diverses solutions
You can do it with two web servers in a cluster, but this solution only applies when the server fails, but no if the network connection is down
another could be two servers, in diferents locations, and DNS with the two IPs, but you have to syncronice databases, equal logs, etc
0
 
LVL 1

Author Comment

by:fbetag
ID: 21794395
My situation would be two different locations with two IPs.  What records would I need to change? A record? How does it know to forward if one site can not be reached?
0
 
LVL 4

Expert Comment

by:albuitra
ID: 21794504
What do you want exactly ?
Network redundance or Server redundance ?
Ir you wnat network redundance, you can have only one location, with 2 o 3 networks connections with diferent providers and use routers with BGP support
If you have two diferent locations, with diferents IPs, you can set the TTL in DNs to 1 hour, so you can change the IPs in case of network fail to another site
0
 
LVL 1

Author Comment

by:fbetag
ID: 21794674
I wan't people to be able to access my site even if one server at one of the locations goes down. Idealy if one server went down then people would be redirected to the other server at the other location.
I would like this to be automated if possible.
0
 
LVL 4

Accepted Solution

by:
albuitra earned 250 total points
ID: 21794791
If you want it, so you can check for a provider with a Service Level Agreement that guarantee it
If you want to do at home, you may have to use BGP, with two providers, use replication to maintain the syncronization of your web server, deal with DNS with two actives IPs for an A record

Or you can think in something more simple, like to use only one location, with3 networks conections
In DNS, you use www. yourdomain, www1.yourdomain, www2.yourdomain
www.yourdomain = IP in first coneection
www1.yourdomain = IP in second conection
www2.yourdomain = IP in last conecction
and use of linux as router to the 3 connections.
and use 2 web servers, one active, and another in stand by for hardware fails of the first
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now