Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure maintenance or site down page

It isn't obvious to me, from just looking at the the Google Load Balancer documentation if there is a simple way to configure a "site is under maintenance" or "site down" page.

Some cloud load balancers let you upload a simple html page and then offer a "checkbox" to serve that page until you uncheck it.

Or they let you upload a custom error page, and when the http health checks fail, they automatically serve that error page.

Or both.

Is this easily done with the Google Cloud infrastructure?

I know we can edit our nginx configuration to serve such a page, but I'm looking for something a little more idiot proof, and something that will even work when nginx is down too.

(Not that we ever want to go down that much, but sometimes it happens, and it would be good to be able to post an intentional "yes, we know we are down - we'll be back up again soon".)

like image 480
rotten Avatar asked Nov 29 '16 22:11

rotten


People also ask

How do I select who can access my website during maintenance?

To select who can access your website during maintenance, you’ll need to edit the maintenance page settings. Simply visit SeedProd » Pages and click the ‘Edit Page’ button under Maintenance Mode. Inside the SeedProd builder, you need to click Page Settings at the top of the page, and then select the Access Controls tab.

How do you Make Your maintenance page stand out?

Your visitors shouldn’t feel like they landed on a totally different site when they find your maintenance page. Your brand should extend into your maintenance page. That includes things like color scheme, copy, tone, graphics. Make it clear that visitors are still within your site. Puns like this work well with Product Hunt’s playful brand.

How do I tell visitors that my website is down for maintenance?

Create a maintenance.html page that will tell the visitors that your website is down for maintenance. As a template, you can use the following simple HTML code of the maintenance page ( demo ): Create an empty file, named maintenance.enable, inside the site’s document root.

How do I enable maintenance mode without restarting the site?

As a template, you can use the following simple HTML code of the maintenance page ( demo ): Create an empty file, named maintenance.enable, inside the site’s document root. We’ll use it to turn the maintenance mode ON and OFF, without Apache restart.


1 Answers

You can't do that in GCP for now.

See Google Cloud LB: Change "server error" default html page

And HTTP Load Balancer Custom Error Page

I needed to do that too. Unfortunately, there is no easy way, like a checkbox.

like image 143
HakRo Avatar answered Sep 20 '22 23:09

HakRo