How to make a failover web server?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
6 views
Initial data: is There a site that has two servers. One of them is nginx, MySQL, and website content (audio, photos).


Problem: When you disable one of the servers of the site should be still available.


Question: How to do it and what do I need? How can I make it so the client asked for a website and was redirected to the server B in case server becomes unavailable and Vice versa?


Thanks in advance for your answers.


PS: the OS on both servers is Debian 5.
by | 6 views

7 Answers

0 like 0 dislike
Place the front of the servers, nginx proxy to the backends.
by
0 like 0 dislike
Zahochetsa on Amzone and do a redirect from Amazon to any of your live servers.
by
0 like 0 dislike
somehow so
by
0 like 0 dislike
The third "most reliable" server with nginx with these settings.
by
0 like 0 dislike
As a variant of anycast.
by
0 like 0 dislike
by
0 like 0 dislike
servers near or in different data centers?
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked May 20, 2019 by Rihard_Novozhilov
0 like 0 dislike
2 answers
0 like 0 dislike
5 answers
110,608 questions
257,186 answers
0 comments
27,913 users