Let’s face it. It is kind of embarrassing when our Magento 2 or 1 site goes down with an ugly “Service Unavailable” message to your customers. Either on purpose for maintenance, or without your knowledge due to a system fault, the default “Service Unavailable” or Magento error pages are just screaming stay away from your store.
A low cost DIY aMiSTACX solution
Step 1. Leverage Cloudflare CDN’s Page Rule features.
Free accounts get three to start. Set up a forwarding URL for your domain. So when Page Rule = ON, forward to the AWS S3 static page.
Step 2. Get a Free One-Page Bootstrap Landing Page
Step 3. Host a redirection landing page on AWS S3.
Just create a bucket, upload your static page, and set AWS S3 to hosting.
Looks something like this when finished:
Step 4. Automate it all with Area 51 Health Checks and Alerts w/ Cloudflare API Page Rule Integration.
A cool new feature for Area 51 Pro accounts [$20 USD per month] allows you to create an HTTPS health check on your site(s).
When your store goes offline for any reason, the health check will send out an SMS alert to you and/or your Team, and as an additional feature you can set a Cloudflare Page Rule to toggle ON.
The result is an automated alert and friendly maintenance page automated switch that avoids an ugly unprofessional error page. Making you look like a Pro, and building confidence with your customers.
Note: When you bring the site back online, you must manually toggle the page rule OFF so your customers will continue their experience with your site.
~ Lead Robot