Forum Discussion
rodrigo_Benzaqu
Nimbostratus
Oct 03, 2006Need Help to Migrate Rule from V4 to V9
Hi Guys,
I have to move the following Rule from v4.x to V9.x. I,m trying to use "case" instead of "if", but it´s giving me syntax error:
rule Cache_Fetch {
if (http_ur...
Oct 03, 2006
I'd use a switch statement myself...
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/jm/pms*" -
"/cgi/pms/*" {
pool PMS_java
}
"/jm/*" -
"/jms/*" -
"/servlet/*" -
"*_JM" -
"*_JSEA" -
"/dwr/*" {
pool Java_Servers
}
"*/ml/*" {
pool SQL_Servers
}
default {
pool static_server
}
}
}I think I've got all of your starts_with and ends_with correct, but you should double check.
Hope this helps...
-Joe
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