Forum Discussion
amebiz_142234
May 25, 2018Nimbostratus
irule pool selection based on dynamic cookie value
Hi, my scenario: i want to select a pool based on a cookie value - that works as aspected when_HTTP_REQUEST {
if { [HTTP::cookie exists "myCookie"] } {
switch -glob [HTTP::cookie value "myCook...
amebiz_142234
Jun 04, 2018Nimbostratus
that works fine
when HTTP_REQUEST {
Check the requested URI
switch -glob [HTTP::uri] {
"/foo/*"
{
pool foo
persist cookie insert foo 0
}
default {
pool bar
persist cookie insert bar 0
}
}
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