Forum Discussion
Lucilius_223799
Nimbostratus
8 years agoDatagroup 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
8 years agoBased 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]
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