Forum Discussion
Vadim_96730
Nimbostratus
Sep 03, 2015iRule for directing traffic from a specific host and URI to a given pool
Hi, Guys.
I need help for writing an iRule to send traffic from host1.internet.com with a URI request matching /uri1* to a pool pool1
Thank you in advance.
Samir_Jha_52506
Noctilucent
Sep 03, 2015use this irule.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/uri1*" } {
pool pool_X
}
}
- Samir_Jha_52506Sep 03, 2015
Noctilucent
Hope it will work.. try this. when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "host1.internet.com" and [string tolower [HTTP::host]] starts_with "/uri*" } { pool pool_x } }
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