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".)
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With