Forum Discussion
efzc_104887
Nimbostratus
Dec 11, 2007domain 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.
- hoolio
Cirrostratus
Hi,when HTTP_REQUEST { switch [string tolower [HTTP::host]] { abc.com - def.com { pool pool_a } default { pool pool_b } } }
- efzc_104887
Nimbostratus
thanks for your information, Aaron. I'll have a try in testing environment
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects