Forum Discussion
Justin_47030
Nimbostratus
Jun 17, 2015irule uri pool x else pool y
We have a vserver setup with persistence, pool, http profile etc. Developers want any traffic hitting abc.xyz.com/FOO to go to a specific pool of servers and all other traffic will go to the current pool in place. Would the irule below work for this?
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/FOO" } { pool FOO } else { pool current_pool } }
1 Reply
- Samir_Jha_52506
Noctilucent
i don't see any issue with your iRule. Please try below irule
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/foo" } { pool foo } else { pool current_poo } }
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