Forum Discussion
TJ_Vreugdenhil
Cirrus
Aug 17, 2011Persistance 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
Cirrus
Aug 17, 2011I used the default cookie persistence profile (insert mode) and applied the iRule you suggested. I believe persistence is working correctly, but the website reports a redirect loop:
If I update the iRule to use HTTP:path and remove the trailing '/' - Will that prevent it from looping, or do I have to use an " & amp & " operators with a string? Any helpful debug log statements are appreciated. Still learning 🙂
when HTTP_REQUEST {
log local0.debug "using persistence"
switch -glob [string tolower [HTTP::path]] {
"/client" { pool athoc_pool_1 }
default {
persist none
HTTP::redirect "http://[HTTP::host]/csi"
log local0.debug "using redirect"
}
}
}
-TJ
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