Forum Discussion
Chris_Miller
Jan 17, 2011Altostratus
You can do this without setting any variables. That'll help performance a tiny bit.
when HTTP_REQUEST {
log local0. "User requested Host [HTTP::host]"
switch -glob [string tolower [HTTP::host]] {
"*hotmail*" -
"*weather.com*" {
log local0. "[HTTP::host] going directly to [HTTP::host] -- 1.2"
pool internet_pool }
default {
log local0. "[HTTP::host] going through proxy--1.3"
pool proxy_pool }
}
}
What errors were you originally seeing?