Forum Discussion
Lucilius_223799
Nimbostratus
Jul 03, 2017Datagroup Irule matching
I have been trying to make my code match for both host and uri. For example
:=
:=
when HTTP_REQUEST {
set locationHttps [class match -value [HTTP::host] equals list-https]
set locationHttp...
Andrew_Husking
Cirrus
Jul 03, 2017Based on your code above, only the first datagroup entry will work as you're trying to match [HTTP::host] against the datagroup. Because the next two have a URI in them as well, they will never match.
To do both, you'd need to do something like the below, but i don't have an F5 to test it on at the moment set locationHttps [class match -value [HTTP::host][HTTP::uri] equals list-https]
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
