Forum Discussion
EL
Nimbostratus
Mar 15, 2017Automatic Maintenance Page
Hi Folks
I would like to check whether got any sample irule to achive my requirement. I would like enable the automatic maintenance page if my server under maintenance, the requirement as below
...
Mar 15, 2017
Hi,
You need to create 3 load balancing pools.
1 pool that has a generic http monitor and is used for traffic processing. 1 pool with a monitor with a disabled string 1 and pool name pool_1 (this pool won't process traffic) 1 pool with a monitor with a disabled string 2 and pool name pool_2 (this pool won't process traffic)Your irule will look like:
When HTTP_REQUEST {
if { [active_members pool_1] < 1 } {
HTTP::respond 302 Location "http://domain.com/maintenance_1.html"
} elseif { [active_members pool_2] < 1 } {
HTTP::respond 302 Location "http://domain.com/maintenance_1.html"
}
}
Cheers,
Kees
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