Forum Discussion
How to set session affinity for SSL URLs.
If the one URL doesn't NEED affinity but the others do, I'd recommend just setting affinity by SSL session ID or via the source IP address if the load balancer isn't terminating SSL. Getting affinity when it's not needed shouldn't harm anything.
If the load balancer is terminating SSL, I'd still use a generic cookie persistence or other appropriate type of persistence.
Since you're trying to make this determination based on the URL.. I'm guessing the load balancer IS terminating the SSL and that you MUST set persistence on the one URL and not on the other.
This link has good info: https://devcentral.f5.com/questions/using-irule-to-set-persistence-profile
Quoting Mikeshimkus direction...
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "myuri" } {
persist source_addr
}
}
Just replace the variable and persistence type with whichever type you prefer.
Jason
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
