Forum Discussion
Shripaty
Cirrus
Dec 26, 2019How to use a Datagroup of URI Strings to compare and select pool based on HTTP :: Path
HI , I have a scenario , I am trying to use do pool selection by comparing the starts_with part of the http::path with consecutive URI included in a Datagroup . More over , when i try to ...
Shripaty
Cirrus
Dec 26, 2019Thanks , for the hint , but still i am not able to match the consecutive http path with the URI listed in the datagroup
I am trying to match
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] starts_with "/a/b") and ([class match [string tolower [HTTP::path]] eq x_URI_list) } {
pool x_pool
}elseif {([string tolower [HTTP::uri]] starts_with "/a/b") and ([class match [string tolower [HTTP::path]] eq y_uri_list]) } {
pool y_pool
}else {
reject
}
}
}
Dec 26, 2019
Does the datagroup strings contain "/a/b"?
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
