Forum Discussion
Jan 28, 2015
Hi djschul,
in case there is a VIPCookie in the client request we probably can assume we have to handle a returning client:when HTTP_REQUEST {
if { [HTTP::cookie exists VIPCookie] } {
pool pool_thispool
} elseif { [string tolower [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
}
}
}
Maybe using "ends_with" would be better than "matches_regex"?
Thanks, Stephan