Forum Discussion
Brad_146558
Mar 26, 2015Nimbostratus
iRule 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/" } }
Brad_Parker
Mar 26, 2015Cirrus
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/"
}
}
- Brad_ParkerMar 26, 2015Cirrusprobably want to [string tolower [HTTP::uri]] to make sure your matching is all lower case.
- Brad_146558Mar 27, 2015NimbostratusUnfortunately it still seems like it isn't matching against the datagroup and forwarding all URIs on to the pool.
- Brad_ParkerMar 27, 2015CirrusRemoved the erroneous extra } from the rule above.
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