Forum Discussion
ryan_rockwell_1
Nimbostratus
May 14, 2014nested 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...
ryan_rockwell_1
Nimbostratus
May 19, 2014I guess I'm trying to make too many changes at once so I decided to narrow my focus. First I need to get the rule to work with Data Groups. So I used Kevin's rule and checked it against my environment:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] starts_with QA-HEC-ENT-URI] } {
pool INF-ENT-HTTP
} elseif { [class match [string tolower [HTTP::uri]] starts_with QA-HEC-URI] } {
pool INF-HEC-DNNREDIRECT
} else {
pool INF-HEC-HTTP
}
}
Now I get a 500 Internal server error. I'm not familiar with HTTPWatch or Fiddler so I'm going to have to introduce myself to them before I can see what's going on under the hood.
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