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
}
}
- Sabari_Nath_179Dec 04, 2014NimbostratusHi...writing the iRule for redirecting to seperate pools is fine. The question here is if these two pools can be mapped under the same virtual server VIP. If not can a pool be created amd not relate to any VIP and still redirecting traffic to that stand alone pool will still work
- ghcheeOct 06, 2023Nimbostratus
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