Forum Discussion
youssef1
Aug 29, 2018Cumulonimbus
Hi,
Hope it can help you:
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals 192.168.53.0/24] && !([active_members [LB::server pool]] < 1 ) } {
HTTP::redirect "https://site1.xyz.com/finance/home/?locale=en_uk"
}
elseif { ( [IP::addr [IP::client_addr] equals 192.168.1.0/21] or [IP::addr [IP::client_addr] equals 192.168.16.0/21] ) && !([active_members [LB::server pool]] < 1 ) } {
HTTP::redirect "https://site2.xyz.com/finance/home/?locale=en_uk"
} else {
default
}
}