Forum Discussion
dyobbs_25515
Jul 22, 2015Nimbostratus
iRule to match 2 or more strings in the URI?
I have this requirement to match 2 uris in the same request. i have this iRule:
when HTTP_REQUEST { switch -glob [HTTP::host][HTTP::uri] { "/upload" - " images " { pool SERVER1 } } }
The iR...
mimlo_61970
Jul 22, 2015Cumulonimbus
I would recommend you use a datagroup to store all of the possible values and then search against it.
when HTTP_REQUEST {
if { [ class match [HTTP::uri] contains uri_Datagroup ] } {
pool SERVER1
} else {
pool SOME_OTHER_POOL
Then create a datagroup (named uri_Datagroup in the above example) of type string and put all of your URIs in it.
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