Forum Discussion
Configuring multiple pools under same VIP in F5 Load Balancer
Sabaris,
Either one of these should work, though I believe the second one consumes less resources due to the switch statement. The 'string tolower' doesn't have to be in there, though it could also be in both, just depends how you want to do it.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/newapp" } {
use pool pool_abc_newapp
} else {
use pool pool_abc
}
}
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
switch -glob $uri {
"/newapp*" {
use pool pool_abc_newapp
}
default {
use pool pool_abc
}
}
Hi Sheigh / Expert
Additional question for this title "Configuring multiple pools under same VIP in F5 Load Balancer"
If there is ASM (AWAF) module installed on the same f5 device,
Since we only use same VIP for multiple pools,
1) Can we still have multiple ASM(WAF) policy for multiple web service? By which I can set this up ?
i.e, "abc_Policy", "abc_newapp_Policy"
Thanks for assist.
Recent Discussions
Related Content
* 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