Forum Discussion
nested elseif unexpected behaviour
So are you saying that in the absence of the maintenance condition it all works?
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
}
}
Are you specifically testing the maintenance condition, or are you saying that the inclusion of the maintenance condition code causes issues when not in a maintenance condition ([active_members INF-HEC-HTTP] < 1)?
If the former, perhaps removing the default HTTP::uri / statement might help. You're basically saying that for anything that doesn't end with .gif or .css, rewrite the URI to /.
Otherwise, as alluded earlier, it may be a good idea to fire up a client side analysis tool like Fiddler or HTTPWatch to see what's going on under the hood.
Recent Discussions
Related Content
* 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