Forum Discussion
Jan 28, 2015
Hi djschul,
maybe this iRules in combination with slightly modified persistence settings and default pool set to pool_thispool helps to solve the requirement. Please use "source address affinity" as fallback persistence profile for your virtual server (perhaps with a modified timeout of 10,800 seconds).when HTTP_REQUEST {
set persist_record [persist lookup source_addr "[IP::client_addr] any virtual"]
log local0. "persist lookup: $persist_record"
if { $persist_record equals "" } {
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
persist none
}
}
}
}
Thanks, Stephan