I
I
ilyazaytsev2016-04-29 04:04:14
System administration
ilyazaytsev, 2016-04-29 04:04:14

How to make a redirect to another hosting if the first one is not available?

Good day!
There was such a question, for example, there is hosting1, where our site is configured, and hosting2. Initially, our domain leads to hosting1. Is it possible to make it so that if hosting1 returns "500 Internal Server Error ", then it will redirect to hosting2 so that the site will work from it?
It seems like you can configure fault tolerance for your servers using the so-called DNS Failover, but what if only virtual hostings are available? Well, or one virtual hosting and VDS?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nikolayvaganov, 2016-04-29
@ilyazaytsev

Run a webserver with balancing as a proxy only ( nginx upstream weight ), then after it raise virtuals.

O
Optimus, 2016-04-29
Pyan @marrk2

The meaning is the same How to make a high availability website?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question