Forum Discussion
Domai_23823
Nimbostratus
Dec 01, 2017Maint page irule help
Hello I am trying to come up with a iRule for maint page. The requirement is -
The page should be displayed when all the servers in the pool are down. The servers will be patched and will be reb...
Andy_McGrath
Cumulonimbus
Dec 02, 2017Update to f5_rock’s updated iRule to remove duplication, also you don’t need the else and pool http_80 lines if you are using the default pool assigned to the virtual server.
when HTTP_REQUEST {
Pool members is less than 0 or client IP is not in subnet 10.0.0.0/8 return maintenance page
if {[active_members [LB::server pool]] < 1 || [IP::addr [IP::client_addr]/8 ne 10.0.0.0]} {
HTTP::respond 200 content [ifile get "Maintenance_html"] noserver "Cache-Control" "no-store, no-cache"
} else {
pool http_80
}
}
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
