Pool-node selection based on URI

From Tech-Wiki
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
 } 
}