Forum Discussion
rodrigo_Benzaqu
Nimbostratus
Jun 06, 2007Check my sintaxis on the rule ??
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
}
}
- Deb_Allen_18Historic F5 AccountYou 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 } } } }
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