Forum Discussion
Christoph_Fris1
Nimbostratus
Aug 10, 2016Handle more than one application with one virtual server
Hello together,
our problem is that we have one VIP configured on the F5, which has currently one pool in the background. But now we configured a second pool which holds a different application, wh...
VernonWells
Employee
Aug 10, 2016I follow. I was just being a bit thick about the actual thing that is persisted (the pool member, not the pool). So, you can do this:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/new-app" } {
set new_app 1
pool new-app
}
elseif { [HTTP::cookie exists NewAppPath] } {
pool new-app
}
}
when HTTP_RESPONSE {
if { [info exists NewAppPath] } {
HTTP::cookie insert name NewAppPath value true path /
}
}
You must use OneConnect or add an
LB::detach for Keep-Alive values to work, as noted by somebody else above. What this does is set a second cookie -- NewAppPath -- when the first condition is met. If later that cookie is present (we don't really care about the value), then the new-app pool is selected again.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