Hello, Can I use “??” on the rules ?
Is this rule ok ?
Thanks man.
rule RULE_MPAGO {
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
“/m??/*” -
“/mp-*”
{
pool POOL_MPAGO }
“/cgi-bin*”
{
pool POOL_MPAGO_8088 }
“*/ml/*” {
pool POOL_SQL }
default {
pool POOL_STATIC
}
}
You probably need to have the opening “{” for each body on the same line as the conditions, and the “” are not required, but otherwise looks like it would work:
rule RULE_MPAGO {
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
/m??/* -
/mp-* {
pool POOL_MPAGO
}
/cgi-bin* {
pool POOL_MPAGO_8088
}
*/ml/* {
pool POOL_SQL
}
default {
pool POOL_STATIC
}
}
}
}
HTH
/deb