Forum Discussion
gdoyle
Sep 24, 2018Cirrostratus
Maintenance 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
Sep 24, 2018Employee
Even 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?
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