Forum Discussion
dr_tamfr_dhp_19
Nimbostratus
Sep 01, 2015iRule for setting pool based on URI path
Hello,
I know it's possible to set a pool based on the URI path. But what I need to do past that is a bit more complex, and I'm not sure where to begin.
I have two pools I'm testing with: ...
arpydays
Nimbostratus
Sep 01, 2015I'm may have the misunderstood but this will to route to pool prepended with hostname if the uri starts with /tr
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/tr" } {
scan [HTTP::host] {%[^.]} host_pool
pool ${host_pool}tr.domain.com
}
}
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