Forum Discussion
Chris_Miller
Altostratus
Apr 26, 2010Best Way to do Cookie Persistence here?
I have one VIP and 5 "pools" that can service the VIP. Each pool is made up of 3 clustered servers so pool persistence is required, but not server persistence within the pool.
So, if a user hits our ...
The_Bhattman
Nimbostratus
Apr 26, 2010An alternate iRule you can use the switch command
when HTTP_REQUEST {
switch -glob [string tolower[HTTP::uri]] {
"/content1*" { pool pool.for.content1 }
"/content2*" { pool pool.for.content2 }
"/content3*" { pool pool.for.content3 }
"/content4*" { pool pool.for.content4 }
"/content5*" { pool pool.for.content5 }
default { HTTP::redirect http://[getfield [HTTP::host] ":" 1]/content1 }
}
}
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