Forum Discussion
Sudhir_Sanil_88
May 19, 2006Historic F5 Account
irule to select pool based on fqdn
Hi,
I need an irule which can select the pool ( pool A or pool B) based on following criteria.
Example : web1.xyz.com and web2.xyz.com both resolve to same IP Address say 10.10.10.1, a ...
Aug 10, 2006
The fqdn will be stored in the HTTP::host value. Here's how you could do it with a switch statement. An if/elseif would work just as well.
when HTTP_REQUEST {
switch [HTTP::host] {
uat.site1.com {
pool pool_a
}
conv.site1.com {
pool pool_b
}
default {
log local0. "Uknown site: [HTTP::host]"
}
}
}-Joe
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
