Brian_Kenworthy
Jul 31, 2009Nimbostratus
Rule Modification Help with Switch
Hi all, I have the following existing rule that we will be adding another pool to. I am using the switch command, but am wondering if I need to add some if/else clauses. Here's the existing rule:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/xml/order.asp*" -
"/xml/status.asp*" -
"/vmsxml/order.asp*" -
"/vmsxml/status.asp*" -
"/_xmlbeta/status_mismo21.asp*" -
"/_xmlbeta/status.asp*" -
"/_xmlbeta/rels_status_mismo21.asp*" -
"/vendor/status.asp*" {
host.mydomain.com_B2B_HTTPS
}
default {
host.mydomain.com_GUI_HTTPS
}
}
}
We are adding a new URI to the existing URL which will forward the traffic to the new pool:
"/BatchProcessing*" -
host.mydomain.com_BatchPro_HTTPS
I'm not quite sure how to add this with the switch command...do I need to use an if/else clause in my rule, or can I add another switch command? You help is much appreciated!
Thanks in advance,
Brian