Forum Discussion
TJ_Vreugdenhil
Aug 17, 2011Cirrus
Persistance iRule
VIP = 10.7.200.21
URL = http://alerts.company.edu/
URI needs to have persistence = http://alerts.company.edu/client/*
URI no persistence = http://alerts.company.edu/csi/* ...
TJ_Vreugdenhil
Aug 17, 2011Cirrus
I am thinking the logic would be something like the following, but need help with syntax.
Thanks, TJ
when HTTP_REQUEST {
log local0.debug "using persistence"
if {([class match [switch -glob [string tolower [HTTP::path]] {
"/client"}}] { pool athoc_pool_1
&& !([string tolower [HTTP::path]] starts_with "/client")} {
default {
persist none
HTTP::redirect "http://[HTTP::host]/csi"
log local0.debug "using redirect"
}
}
}
}
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