Forum Discussion
nitass
Apr 23, 2014Employee
oh yes, you are correct. sorry, i misthought.
would you mind trying this?
when HTTP_REQUEST {
if { [active_members INF-HC-HTTP] < 1 } {
if { $static::DEBUG } { log local0. "Primary pool offline" }
switch -glob [string tolower [HTTP::path]] {
"/" -
"*css" -
"*jpg" -
"*gif" -
"*png" {
do nothing
}
default {
HTTP::redirect "http://[HTTP::host]"
}
}
pool QA-PH
} elseif { [class match [string tolower [HTTP::uri]] starts_with QA-HC-URI] } {
pool INF-HC-HTTPDNN
} else {
pool INF-HC-HTTP
}
}