Pool-node selection based on URI

From Tech-Wiki
Revision as of 18:49, 20 May 2019 by Fabricio.Lima (Talk | contribs) (Created page with "Category:F5 Networks '''Back to iRules''' when HTTP_REQUEST { if { [string tolower [HTTP::uri] ] starts_with "/operational" } { pool node1...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Back to iRules

when HTTP_REQUEST {
 if { [string tolower [HTTP::uri] ] starts_with "/operational" } { 
   pool node1
   # node 10.x.x.1 8080
 } 
 if { [string tolower [HTTP::uri] ] starts_with "/admin" } { 
   pool node2
   # node 10.x.x.2 8888
 } 
}