Forum Discussion
Brian_Kenworthy
Nimbostratus
Oct 03, 2006Inspect URI without Case Senstivity?
Hello all,
I have created the following rule to redirect traffic based on the URI to another pool, however, I want the rule to ignore case sensitvity within the URI string. Here is my rule:...
Brian_Kenworthy
Nimbostratus
Oct 03, 2006Thanks Joe, that did the trick!!
One last question...I have a handful of paths to compare, so I added them to my rule with the "or" clause:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/_xml/ors/status.asp"
or [string tolower [HTTP::uri]] starts_with "/_xml/vendor/status.asp"
or [string tolower [HTTP::uri]] starts_with "/_xml/client/status.asp" }{
pool mypool_B2B_SSL
} else {
pool mypool.com_SSL
}
Is there any better way to write this rule to avoid redundancy? Thanks again.
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