Forum Discussion
wixxyl_98682
Nimbostratus
Jul 11, 2013Routing to individual pool member based on URI
Dev,
Looking to route to several backend ports on a server based on URI. My thoughts are creating one pool that references the server's four different ports, 8081-8084, and using a switch statement...
wixxyl_98682
Nimbostratus
Jul 13, 2013Thanks Nitass, that was what I was needing. My finished rule ended up looking like this, in case anybody needs something similar in the future.
when HTTP_REQUEST {
switch -glob [HTTP::uri]] {
"*/wfdevl*" {
pool sis-workflow-dev.dev.uga.edu member 172.17.140.14:8081
}
"*/wfbild*" {
pool sis-workflow-dev.dev.uga.edu member 172.17.140.14:8082
}
"*/wftest*" {
pool sis-workflow-dev.dev.uga.edu member 172.17.140.14:8083
}
"*/wftrng*" {
pool sis-workflow-dev.dev.uga.edu member 172.17.140.14:8084
}
default {
drop
log local0. "connection dropped from [IP::client_addr]"
}
}
}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