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 ...
hoolio
Cirrostratus
Dec 11, 2007Hi,
That looks like a good start. You should add a hyphen after abc.com so that def.com is considered as part of the same condition. Also, if you're not using wildcards, you can remove the -glob flag. Finally, the host header isn't case sensitive, so you could set it to lower case before doing your comparison.
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
abc.com -
def.com {
pool pool_a
}
default {
pool pool_b
}
}
}Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
