djkromarek
Jan 28, 2015Nimbostratus
iRule to set pool based on URI then persist based on clientIP
I have the following iRule that based on the URI, sends the clientIP to a specific pool. Once they are in that pool, no matter what host or URI they go to, I need them to persist to that pool. when HTTP_REQUEST { if { [HTTP::host] matches_regex "abc.com" }{ if { [string tolower [HTTP::uri]] starts_with "/test" } { pool "pool_thispool" log local0.alert [HTTP::host] } else {pool "pool_defaultpool"} } } If they are in the pool_thispool, how do I keep them there even if they go to cde.com or abc.com/test2?