Forum Discussion
gdoyle
Cirrostratus
Sep 24, 2018Maintenance Page Needed.
Hello, all.
A customer is requesting that a maintenance page be displayed for their VIP when their pool members are down. They have provided the HTML code with some Base64 embedded images.
...
Kevin_Stewart
Employee
Sep 24, 2018Even simpler:
when HTTP_REQUEST {
if { [active_members pool_1] < 1 } {
HTTP::respond 200 content [ifile get "MaintenancePage.html"] noserver "Content-Type" "text/html" "Cache-Control" "no-cache, must-revalidate"
}
}
There's likely no reason to qualify the request URI here. Otherwise what would you do if the request URI wasn't "/" and all pool members were down?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects