atoth
Aug 10, 2015Cirrus
How to do a NOT URI with switch -glob
There is a VIP with an irule on it using the switch -glob format. Something like
switch [HTTP::uri] {
"/foo/* -
"/bar/* { pool blah
} default { pool default
}
}
Now the application team that own the VIP would like to change that to something like
switch [HTTP::uri] {
**NOT** "/foo/* -
"/bar/* { pool blah
} default { pool default
}
}
So that if the conditions do not match either /foo/ or /bar/, than redirect to pool blah. Not sure what the right syntax for that would be.