Forum Discussion
Vijay_E
Jan 10, 2017Cirrus
This is an untested, rough iRule that you have to alter to suit your needs:
when HTTP_REQUEST {
if { [active_members WEB_POOL] < 1 } {
HTTP::respond 500 Location "https://online.mydomain.org/statusCheck2"
} elseif { [active_members WEB_POOL] > 0 } {
HTTP::respond 200 Location "https://online.mydomain.org/statusCheck2"
}
}
You can probably use switch instead of if-else.