Forum Discussion
dyobbs_25515 Nimbostratus
Nimbostratus
Jul 22, 2015iRule 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...
Kevin_Stewart Employee
Employee
Jul 22, 2015when HTTP_REQUEST {    
   if { ( [string tolower [HTTP::uri]] contains "upload" ) and ( [string tolower [HTTP::uri]] contains "images" ) } {       
      pool SERVER1
   } else {       
      pool SOME_OTHER_POOl
   }
}
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