Forum Discussion
Robert_47833
Altostratus
Sep 20, 2011how to merge these conditions to one :matches_regex
how to merge these conditions to one
if {$port == 443 and $uri matches_regex "^(/up)"} {
persist none
pool SRWD42-SLX
}
elseif {
$port == 443 and $uri matches_reg...
Brian_69413
Nimbostratus
Sep 20, 2011There is probably a more efficient way to do this, but:
if { ($port == 443) and (($uri matches_regex "^(/up)") or ($uri matches_regex "^(/auto/bu)") or ($uri matches_regex "^/auto/Da")) }{
persist none
pool SRWD42-SLX
}
if { ($port == 443) and (($uri starts_with "/up") or ($uri starts_with "/auto/bu") or ($uri starts_with "/auto/Da")) }{
persist none
pool SRWD42-SLX
}
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