Forum Discussion
Shurton
Nimbostratus
Jun 19, 2020irule for pool selection based on URI
I lifted this portion of an irule from a bigger one used elsewhere and I can't get the syntax right. I basically need the URI examined, and if it matches one in the list (test1, test2,test,3) then f...
Mayur_Sutare
MVP
Jun 20, 2020Best option for this would be using LTM Policy. But still you can even try below iRule.
when HTTP_REQUEST {
if {([HTTP::uri] contains "test1") || ([HTTP::uri] contains "test2") || ([HTTP::uri] contains "test3")} {
pool ONPREM
} else {
pool CLOUD
}
}
Hope it helps!
Mayur
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