Forum Discussion
Jeff_Morrison_4
Dec 05, 2007Nimbostratus
Combine iRules
When I try and combine these 2 rules into one, the second half of the rule (elseif) doesn't seem to work properly. I have the rules listed seperately on the VIP, but I have 40 rules and would like to...
Colin_Walker_12
Dec 05, 2007Historic F5 Account
Combined, those would look something like:
when HTTP_REQUEST {
if { ([HTTP::uri] contains "/ABC") or ([HTTP::uri] contains "/DEF") } {
pool WLS-V10
} elseif { [HTTP::uri] contains "/XX3333"}{
HTTP::uri [string map {/XX3333/ /ABC/} [HTTP::uri]]
pool WLS-V10
} elseif { [HTTP::uri] contains "/XX4279"}{
HTTP::uri [string map {/XX4279/ /DEF/} [HTTP::uri]]
pool WLS-V10
}
}
HTH,
Colin
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