Forum Discussion
aschi_6586
Nimbostratus
Oct 31, 2013Regular 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 "/manorbo...
uni
Altocumulus
Nov 05, 2013Here's a variant of Joanna's response, which could equally be done using if/else:
when HTTP_REQUEST {
switch -- [string tolower [getfield [HTTP::path] "/" 2]] {
"manorbon" {
SSL::disable serverside
pool ACA-Pool_appl.com_http
}
default {
HTTP::respond 200 content "Forbidden"
return
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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