Forum Discussion
Joe_Pena_46781
Nimbostratus
Jan 21, 2009Need help with IRULE
I need to create an IRULE that will detect certain /foldernames and sent it to a pool, if none of the foldernames exist then send to a different pool. Should I use the same VIP for this, or use 2 sepa...
dennypayne
Employee
Jan 23, 2009The default statement needs to be nested under the switch, you've got too many close braces in between so it's treating it as a separate command (which isn't valid).
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/newfolderA*" -
"/newfolderB*" -
"/folderC*" -
"/folderD*" {
pool "newsite.bankrate.com_pool"
}
default {
pool "oldsite.bankrate.com_pool"
}
}
}
Denny
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