Forum Discussion
Jace_45978
Nimbostratus
Jun 19, 2009CSS to F5 iRule redirect to pool question.
have a CSS that we are moving away from and going to F5 v9.4.7
The CSS has two VIPs same IP and port one is a default url "*" goes to server A and the other is url "/battery/*" goes to service ...
James_Quinby_46
Jun 19, 2009Historic F5 Account
That should work fine, with a slight adjustment for correct syntax and a bit of string normalization:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "battery"} {
pool apache_pool
}
}
There's a bit more elaboration on the 'contains' bit here:
http://devcentral.f5.com/Wiki/default.aspx/iRules.contains
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