J_Saunders_4728
Nimbostratus
Jun 19, 2012Redirect to Maintenance page iRule help
All,
I need to apply an iRule to 3 HTTP and 3 HTTPS VIP's. I want the iRule to redirect users to a maintenance page if none of the pool members are available.
I found this:
when CLIENT_ACCEPTED {
if { [active_members [LB::server pool]] == 0 } {
HTTP::redirect "http://maintenance_site.com" }
}
My questions are:
- will the above work for both HTTP and HTTPS VIP's?
- is 'server pool' an actual F5 generic command? Or should I be specifying the pool name
- if 'server pool' is an F5 command, then I assume I can use this 1 iRule for all of my VIPs
Thanks