Forum Discussion
Bohun_115093
May 16, 2014Nimbostratus
when HTTP_REQUEST {
log local0. "irule Test_5 HIT" if {[string tolower [HTTP::uri]] starts_with "/training" } {
HTTP::uri [string map -nocase {"/training" "/"} [HTTP::uri]]
pool Training_Pool
log local0. "Training Pool selected match on training"
} elseif {[string tolower [HTTP::uri]] starts_with "/test" } {
HTTP::uri [string map -nocase {"/test" "/"} [HTTP::uri]]
pool TEST_POOL
log local0. "TEST_POOL selected matched on test"
} else {
pool Prod_Pool
log local0. "Else statement matched and sent to Prod_Pool"
}
}