rodrigo_Benzaqu
Oct 03, 2006Nimbostratus
Need 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_uri starts_with "/jm/pms" or http_uri starts_with "/cgi/pms/") {
use pool PMS_java
}
else {
if (http_uri starts_with "/jm/" or http_uri starts_with "/jms/" or http_uri starts_with "/servlet/" or http_uri ends_with "_JM
" or http_uri ends_with "_JSEA" or http_uri starts_with "/dwr/") {
use pool Java_Servers
}
else {
if (http_uri contains "/ml/") {
use pool SQL_Servers
}
else {
use pool static_server
}
}
}
}
thanks for your help,
Rodrigo