efzc_104887
Dec 11, 2007Nimbostratus
domain bypass ?
There are two member pools (pool_a and pool_b)set in the system. I would like to set the irules such that when the users access www.abc.com and www.def.com, the system will use pool_a. When the users access the other domain, the system will use pool_b. I would like to use switch statement so that I can add more domain in future. Would someone please check my following is correct or not?
when HTTP_REQUEST {
switch -glob [HTTP::host] {
abc.com
def.com {
pool pool_a
}
default {
pool pool_b
}
}
}
P.S. my Big-IP version is 9.1.2 40.2
Many Thanks.