Forum Discussion
hooleylist
Cirrostratus
May 04, 2012Hi,
If I help do I get a discount on my utilities? 🙂
Can you try this example which checks the combined host header and path values set to lower case to select the pool? The non-matching requests will use the virtual server's default pool.
when CLIENT_ACCEPTED {
Save the name of the VS default pool
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host][HTTP::path]] {
"*mywebsite.com/util*" {
"*seattle.gov/util*" } {
pool spu-util-pool
}
default {
pool $default_pool
}
}
}
Aaron