Forum Discussion
Tokyo_Jihen_931
Dec 03, 2010Nimbostratus
iRule for URL persistence
Hello all,
I am a newbie of iRules programming. My system is BIG-IP 9.1.2. I am trying to implement persistence using a string that appear in URL.
For example.
http:...
Chris_Miller
Dec 08, 2010Altostratus
You don't necessarily need to set it as a sessionid, you should simply be able to send the request to server x.
I assume switch -glob would be the most efficient way to go, but someone can correct me.
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"*123456*" { pool poolname member x.x.x.x y }
"*456788*" { pool poolname member x.x.x.x y }
}}
In the above, poolname = the name of your pool. x.x.x.x = the ip address of the server and y = the port on which the pool member is listening.
Aaron - this look good?
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