Forum Discussion
Albert__Tase_70
Nimbostratus
Jan 11, 2010need somew help setting persistance with irule
Basically they want to match urls and then apply source_address persistance I used contains and the or statement and used
when HTTP_REQUEST {
if { ([HTTP::uri] contains "x"...
The_Bhattman
Nimbostratus
Jan 11, 2010Hi Albert,
You can certain rewrite you code to the following
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"*x*" -
"*y*" -
"*a*" -
"*b*" -
"*c*" -
"*d*" -
"*e*" - { persist source_addr 300 }
}
}
I hope this helps
Bhattman
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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