aschi_6586
Oct 31, 2013Nimbostratus
Regular Expression
Hi
I just want that the following Path are valid and sent to the Pool, otherwise the "Forbidden" Message should appear.
/manorbon
/manorbon/
/manorbon/anything
I tested the regex "/manorbon([/]._|[/]?)" on http://regexpal.com/ and it worked as expected but it seems that it doesn't work in the iRule. I always get the Forbidden Message.
If I just use "/manorbon*" it works but also anything starting with /manorbon like /manorbons which i don't want.
iRule: when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/manorbon([/].*|[/]?)" {
SSL::disable serverside
use pool ACA-Pool_appl.com_http
}
default {
HTTP::respond 200 content "Forbidden"
}
} }
is there another way to implement this? Best Regards, Roger