URL redirect

Hi,

would like to configure to have traffic redirected from to when all health checks from the following servers have failed at the same time:

VIP: WEB_SERVERS Members “servers”: WEB1 WEB2, WEB3, WEB4, WEB5, WEB6

Thanks

You need something like this (untested):

when HTTP_REQUEST {
if { [active_members WEB_POOL] < 1 } {
HTTP::respond 301 Location "http://www.test2.com"
}
}

WEB_POOL has the pool members with monitors.

Thanks Guys. The client want to re-direct “deferral page” to two specific web sites “cweb1 and cweb2” when all heath check failed. I did this for one server cweb1:

when HTTP_REQUEST { if { [active_members [LB::server pool]] == 0 } { HTTP::redirect "; } }

  1. Is my irule syntax OK
  2. How to add cweb2 in irule ?

Thanks