Forum Discussion
Maxim_Taskov_90
Nimbostratus
Jun 26, 2008Match URI Path and Choose Pool Plus Pool Availability Check
Hi ...
I am trying to create a rule with the following logic and assign it on a single virtual server:
1. If URI path matches string class MyURI (listing about fifteen UR...
hoolio
Cirrostratus
Jun 27, 2008Do you have a default pool on the VIP? Using the rule you posted above, you're not explicitly specifying a pool for requests which don't match the first condition.
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] starts_with $::MyURI] } {
if { [active_members Pool2] > 0 } {
pool Pool2
} else {
pool Pool1
}
} else {
pool Pool1
}
}
Or combined:
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] starts_with $::MyURI] and [active_members Pool2] > 0} {
pool Pool2
} else {
pool Pool1
}
}
Aaron
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
