Forum Discussion
Nov 03, 2014
iRule to redirect traffic between 2 pools based on the URI
I currently have a VIP and pool created for a customer. They are planning to move some services to a new server farm.
They can't create a new URL for this new server farm.
They have requeste...
Thomas_Gobet
Nimbostratus
Nov 03, 2014Hi Joseph,
Something may be wrong on your first condition.
Why do you need ends_with and a wildcard at the end of the condition ?This should work as a replacement :
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/123" } {
pool pool1
} elseif { [HTTP::uri] starts_with "/xyz" } {
pool pool2
}
}
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