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 21, 2014Employee
Try this:
log local0. "request URI = [HTTP::uri]"
switch -glob [string tolower [HTTP::path]] {
"*.gif" -
"*.jpg" -
"*.css" {
return
}
default {
HTTP::uri /
}
}
Take a look at the URIs that the client is requesting. Are they correct?
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