Forum Discussion
Need assitance in applying URI based customized persistence profile through iRule
This worked for only login and application login and logout session. But traffic related to any process done after logging to the application, used to load balance among the pool members and application breaks.
do all the uri after logging in start with /abc?
is it possible the request after logging in matches more than one condition in the irules?
have you tried tcpdump/ssldump to see what is going on exactly? you have private key to decrypt traffic, haven't you?
e.g.
tcpdump -nni 0.0:nnn -s0 -w /var/tmp/output.pcap host x.x.x.x or host y.y.y.y or host z.z.z.z -v
x.x.x.x is virtual server ip
y.y.y.y is pool member ip
z.z.z.z is another pool member ip
by the way, i think the rule1 should look like this.
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/abc*" {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"] 300
}
pool pool_abcservers
}
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist add uie [HTTP::cookie "JSESSIONID"]
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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