Forum Discussion
Brian_Kenworthy
Nimbostratus
Jul 31, 2009Rule 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: ...
Brian_Kenworthy
Nimbostratus
Aug 03, 2009Hi Joe, I did omit the "pool" from the original post, but am I missing a "-" somewhere? I am getting a 404 after modifying the rule now, but not seeing anything in my weblogs. Here's the exact syntax I am using on the rule:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/clientmismo/order.asp*" -
"/vendormismo2/status.asp*" -
"/vmsxml/order.asp*" -
"/vmsxml/status.asp*" -
"/_xmlbeta/ors/status_mismo21.asp*" -
"/_xmlbeta/ors/status.asp*" -
"/_xmlbeta/ors/rels_status_mismo21.asp*" -
"/vendornla/status.asp*" {
pool beta3.res-direct.com_B2B_HTTPS
}
"/BPro*" {
pool beta3.res-direct.com_BatchPro_HTTPS
}
default {
pool beta3.res-direct.com_GUI_HTTPS
}
}
}
Thanks!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects