Forum Discussion
Singh_74932
Nimbostratus
Oct 08, 2008conditional select
Ok here is what i want to do and i tried witting some thing my self this time :
Logically :
if host name = xyz.com
then select pool member a from
...
Oct 08, 2008
Or, you might want to consolidate those two "string tolower"'s into one with a switch to avoid unnecessary memory allocations.
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"xyz.com" {
pool myPool member 10.1.2.100 80
}
"abc.com" {
pool myPool member 10.1.2.200 80
}
default {
take some other action.
}
}
}
-Joe
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