Forum Discussion
JG
Jun 13, 2018Cumulonimbus
You had a typo; also I'd use [HTTP::path] instead.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/lion" {
pool test1 member 1.1.1.1 8080
}
"/tiger" {
pool test1 member 1.1.1.2 8080
}
"/mouse*" {
pool test1 member 1.1.1.3 8080
}
default {
HTTP::redirect "/tiger"
}
}
}