Divert traffic when site down

Any bright ideas on how to fallback to an HTML page "Website Offline" when the main box holding the Wordpress multi-site is down?

Real scenario; fully operational SAAS built on cloud vps. Cloud VPS has issues, emergency rebuild of SAN, our box goes offline. Is there a way to direct traffic to a specific page in the event of melt-down?

Topic offline Wordpress

Category Web


If you are running Nginx, it is easier to implement a similar scenario with an isolated server running Nginx alone.

In Nginx, the HttpUpstreamModule can be configured to divert the traffic to a completely different domain running on a different server. For example, if your site is yoursite.com, it is easy to divert the visitors to status.yoursite.com when the main site (running on a different server) is down for some reason.


Depending on quite how down the site is, you might be able to handle it through .htaccess with ErrorDocument, maybe something in the 500 series of errors would suit you?

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.