jackmoscow_2940
Dec 29, 2016Nimbostratus
multiple conditions for redirect other pools
Good day, all!
Can you please tell how to make traffic redirection for multiple conditions and in different pools of sending traffic to these inspections, if there is no match to do a redirect traffic to the default pool of options for me were written in non-working.
when HTTP_REQUEST {
if {[class match [string tolower [HTTP :: path]] starts_with "ABC"]} {
pool SF_ABC
} Else {
if {[class match [string tolower [HTTP :: path]] contains "/auto/hit"]} {
pool SF_AUTO
} Else {
pool default
}
}