Fotios_30046
Feb 26, 2010Nimbostratus
Combine Two Rules Into One
I have two rules that perform the same function but on different domains. If a subfolder of /products is found use a different pool, otherwise use the default. My question is, can these be combined into a single rule and if so, where do I check for the domain? Before the switch or after?
The rules in question.
Rule 1 - Domain 1
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/products*" { pool Altruik-Furniture}
default { pool Furniture-Production-Pool-HTTP }
}
}
Rule 1 - Domain 2
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/products*" { pool Altruik-CarpetOne}
default { pool CarpetOne-Production-Pool }
}
}