I am using AWS Load Balancer with 3 EC2 servers and I am trying to maintain the maintenance page when the site is under maintenance.
This page should return 503 HTTP code because it is the correct code for maintenance mode and will prevent possible SEO problems.
When I return the 503 code from any of my servers, the Load Balancer makes it "Not In Service", and when all the servers return 503, the website returns a blank page (since all servers are disconnected).
My questions:
1) Is there a way to serve a custom static page with a message for visitors from load balancing if there are no healthy servers?
2) Or how to configure Load Balancer Health Make sure that it will not consider 503 as a reason for marking the server as "unhealthy"?
Thanks!
amazon-web-services amazon-ec2 load-balancing maintenance-mode
Vladimir Mikhaylovskiy
source share