JohnBo
JohnBo

Reputation: 109

How can I show a maintenance page when my web server is down or completely powered off?

I work for a company which has its own web server they are due to have a complete power blackout over the weekend, meaning their servers will be down.

Does anyone know a way we could present a down status on a maintenance page or some kind of redirect so we can at least inform our users that the site is down for maintenance and not just missing/broken?

Upvotes: 1

Views: 6523

Answers (4)

Jay Prall
Jay Prall

Reputation: 5465

If you are using a load balancer, see if it supports a "Sorry Server" page. Most of them have this feature built in.

Upvotes: 0

GrayFox374
GrayFox374

Reputation: 1782

The redirect has to be carried out by the web server. No web server, no redirect. What you can do is to get another web site by a web hosting company (which will not be subject to your blackout), and configure it to route requests from your main dns to the temp site with just a plain notice html page, then remove it once power is restored. This can be done if you have the dns info from the primary site. You could also mirror the site this way, and then shut down the mirror and no one will be the wiser. Try http://siteground.com I have used them for years.

Upvotes: 0

JaggenSWE
JaggenSWE

Reputation: 2084

Set up a server on another location and point their domains DNS record to that server during the blackout.

Upvotes: 0

che
che

Reputation: 12263

The best way is probably setting up a redirection to dummy server on your load balancer or border routers. If you have no such thing, then you can either try asking your provider about the options, or temporarily change the DNS record, provided that you reduce DNS cache timeouts before and after the change, so it takes effect immediately.

Upvotes: 1

Related Questions