Forum Discussion
Techgeeeg
Jan 26, 2013Nimbostratus
Hi Everyone,
I had a similar requirement of iRule as the one written here... Michael I need to know one thing from you... how can I merge the irule...
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 } {
HTTP::redirect "http://209.196.27.42/"
}
}
With this....
when HTTP_RESPONSE {
HTTP::respond 200 content "Site unavailable
System Maintenance NOTICE: This site is down for maintenance.
"}
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 } {
HTTP::redirect "http://209.196.27.42/"
}
}when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 } {
HTTP::redirect "http://209.196.27.42/"
}
}