Forum Discussion
wkirk
Nimbostratus
Jan 26, 2018Using wildcard for multiple URI
We have an existing iRule and datagroup,
when HTTP_REQUEST {
set uri [HTTP::uri]
if {[class match $uri starts_with DG1]} {
pool POOL_SSL
}
if {[class match $uri eq DG_EXACT] or $uri eq "/"...
Stanislas_Piro2
Cumulonimbus
Jan 26, 2018Is it possible to use a wildcard like "/*" in the datagroup such that we no longer need to add thousands of URI in the future?
When reading your code, you can see there are 2 Datagroups
- DG1 with command starts_with which does the same as you expect
- DG_EXACT with command equals
So the code seems good!
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