Forum Discussion
Brad_146558
Nimbostratus
Mar 26, 2015iRule Question
Hi everyone, this is my first time using Data Group lists and I'm having some trouble with the below iRule. Does anyone have any suggestions on what I might be doing wrong?
Also a summary as to ...
- Mar 26, 2015
This should do the trick. Just make sure your DG is a string list and your /URIs go in the string field.
when HTTP_REQUEST { if { [class match [HTTP::uri] starts_with "/Common/"] } { pool some_pool } else { HTTP::redirect "https://somedomain.com/" } }
nathe
Cirrocumulus
Mar 26, 2015Brad, you'll need to use the class command to reference the data group.
See the following wiki for examples, specifically using "class match"
https://devcentral.f5.com/wiki/irules.class.ashx
N
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