Forum Discussion
Robert_47833
Sep 20, 2011Altostratus
how 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
Sep 20, 2011Nimbostratus
There 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
}
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