Forum Discussion
brepav123_22459
Cirrus
May 25, 2016Using "=" symbol in iRule URL Path
Hey everyone,
I've got an iRule where i send traffic to a specific pool based on the URL path they send in. It works well for most URL paths but i've received a request to add a new pool from a ...
Stanislas_Piro2
Cumulonimbus
May 25, 2016You can use the following irule:
HTTP_REQUEST {
if {([HTTP::uri] equals "/") && ([URI::query [HTTP::uri] publication] equals "ecmrc")} {
pool Oracle_11i_TLS_Mcmaster_Pool_Test
} else {discard}
}
or
HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/?publication=ecmrc" { pool Oracle_11i_TLS_Mcmaster_Pool_Test }
default { discard }
}
}
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