Forum Discussion
Chris_Miller
Altostratus
16 years agoBest 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
16 years agoAn 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
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