Here's a cleaned up version of the same rule. See if this one runs any smoother.
when RULE_INIT {
set error_404 "
Sorry, but the page you requested could not be found.
Please check that the requested page was typed properly and try again."
set Servers_down "
Sorry, Servers are currently down for maintenance. Please check back in 10 minutes."
}
when HTTP_RESPONSE {
if {[active_members [LB::server pool]] == 0} {
HTTP::respond 200 content $::Servers_down
} else {
if { [HTTP::status] == 404 } {
HTTP::respond 200 content $::error_404
} elseif { [HTTP::status] >= 500 } {
HTTP::respond 200 content $::Servers_down
}
}
}
Colin