Forum Discussion
CharlesCS
Dec 29, 2016Cirrus
Note that a "string tolower" comparison on the HTTP path will never match an upper-case string. A path always starts with a forward-slash. Also, watch out for embedded blanks.
when HTTP_REQUEST {
if {[class match [string tolower [HTTP::path]] starts_with "/abc"]} {
pool SF_ABC
} elseif {[class match [string tolower [HTTP::path]] contains "/auto/hit"]} {
pool SF_AUTO
} else {
pool default
}
}