Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i want to put my website on 2 servers, When server #1 is down, my site loads from server#2 . How can i do this? i want this 2 servers synced realtime... is there any software for this? or any trick? my servers is linux cent os

share|improve this question

closed as not constructive by Chopper3, HopelessN00b, John Gardeniers, Ward, Michael Hampton Jan 19 '13 at 0:40

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

3  
Pay someone to do it, by simply asking this here you are clearly out of your depth. –  Chopper3 Jan 18 '13 at 22:36
    
What sort of website do you have? Is it static files that can be put on two separate servers? Is there a database involved? Can users upload files? Do you already have the site up somewhere? –  becomingwisest Jan 18 '13 at 23:27
add comment

1 Answer

up vote 0 down vote accepted

Well if you're prepared to put in the work...

Put a load balancer (e.g. nginx) in front of your 2 web servers and have your 2 web servers share some kind of central storage like an NFS mount or a cluster file system like OCFS2.

Of course the devil is in the details but that should get you started. Acknowledge that you're going to spend a lot of time investigating and testing before you do this in production or like Chopper3 said in his comment you should consider hiring someone to do it for you.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.