Forum Discussion
exception list for non-ssl URI paths
How and where do I build the exception list for this script?
when HTTP_REQUEST { if { [class match [HTTP::path] starts_with exception_URI_list] } { return } HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] }
- Kevin_Stewart
Employee
This iRule:
when HTTP_REQUEST { if { [class match [HTTP::path] starts_with exception_URI_list] } { return } HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] }
is looking for a string-type data group called "exception_URI_list". Data groups are easily created in the LTM UI under Local Traffic - iRules - Data Group List. Create a new data group using the defined name, select "String" as the Type, and then start adding your path entries as the String values. It doesn't look like you need the corresponding Value, so you can leave this blank.
An [HTTP::path] is the string value after the domain and before any query strings, so for example, "/foo", "/bar", "/blah".
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