Forum Discussion
LTM 11.4 Traffic Policy Conditions and Regular Expressions
I am trying to create some traffic policies that use regular expressions to match a URL. When using an HTTP Class with the following regex "^/api/rest/.*", requests such as /api/rest/blah would match as expected, however this regex won't work with a traffic policy. I can get a traffic policy to match using "starts_with" and "/api/rest" as the value.
This is fine for the simple case but if I need to match a URI with a regex "^/api(/.*)?/blah "starts_with" won't work. In fact simple regexes don't seem to work at all with traffic policy conditions. Has anyone had any success with traffic policies and using a regexes in the condition?
1 Reply
- What_Lies_Bene1
Cirrostratus
Not supported from what I can tell, I think you'll need to use an iRule instead.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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