Forum Discussion
ryan_rockwell_1
May 14, 2014Nimbostratus
nested elseif unexpected behaviour
I created an iRule to (first) redirect to maintenance page and then if available redirect traffic to 1 of 3 pools based on URI data groups. The iRule compiles fine but the result is unexpected. The...
Kevin_Stewart
May 19, 2014Employee
You may also want to add in some additional logging.
when HTTP_REQUEST {
log local0. "incoming URI = [HTTP::uri]"
if { [class match [string tolower [HTTP::uri]] starts_with QA-HEC-ENT-URI] } {
log local0. "sending to INF-ENT-HTTP"
pool INF-ENT-HTTP
} elseif { [class match [string tolower [HTTP::uri]] starts_with QA-HEC-URI] } {
log local0. "sending to "INF-HEC-DNNREDIRECT"
pool INF-HEC-DNNREDIRECT
} else {
log local0. "sending to INF-HEC-HTTP"
pool INF-HEC-HTTP
}
}
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