Forum Discussion
pedinopa_170325
Nimbostratus
Mar 07, 2016iRule to select specific pool member
I am writing an irule to select a specific pool node based or the uri string.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/node1" { node 80 }
...
amjadb_4287
Nimbostratus
Mar 07, 2016So what's the question?
is this what you are looking for:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/node1" {
pool node1_pool
}
"/node2" {
pool node2_pool
}
default {
pool default_pool
}
}
}
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