Forum Discussion
What_Lies_Bene1
Oct 23, 2012Cirrostratus
So, you'll want to do something like this as without an if statement you're going to specify two pools for every connection;
priority 10
when HTTP_REQUEST {
if { switch -glob [HTTP::path] } {
If HTTP path contains the following;
"/xyz*" -
"/YwZ*" -
"/AbC*"
if { [active_members Pool_X] < 1 } {
If Pool X has no members up;
pool Default_Pool
else {
If Pool X does have members up;
pool Pool_X }
}
}
else {
Everything else;
pool Default_Pool }
}