Forum Discussion
Malcom_Sargla_6
Nimbostratus
Jun 29, 2006BIGIP irule Case c279577
Dear Forum;
Can someone please assist with the following issue.
Title: iRules not operating correctly
Severity: General Assistance Condition: Open-Dispatch
Product: BI...
hoolio
Cirrostratus
Jun 30, 2006Hi,
Are you trying to send requests for a specific set of URI's to a pool and redirect all other requests to the https-based URL?
If so, I think you would want to combine the two rules into one and use an else statement so that only one action is taken. Otherwise, both rules will be evaluated.
I suppose you could use a global variable to track whether the condition in the first rule had been matched and then skip the evaluation of the second rule, but this seems less efficient than using a single rule.
You could try something like this:
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::uri]] starts_with $::PRV_URIs_no_persist] } {
persist none
pool PRV-Stage
} else {
HTTP::redirect "https://www2.provisioning.na.blackberry.com"
}
}Aaron
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