Forum Discussion
Tony_T__153394
Nimbostratus
Jun 08, 2017Only allow specific URI through F5 for virtual server
I'm having trouble creating a rule that only allows a connection if the URI starts with a specific string. This is on 11.x code LTM. I only want anything starting with "soa-infra/resources/Extern...
Ed_Summers
Nimbostratus
Jun 08, 2017One immediate issue: You're using the 'string tolower' function which will convert the URI to lower-case. However your match string includes upper-case characters, so your test will never match.
Change your test condition to all lower case, or remove 'tolower' if you need your match to be case-sensitive.
Also, is the asterisk actually part of the URI you are attempting to match? Don't include it if you're using it as a glob "match anything else". Just include the literal string you want to match with 'starts_with'.
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