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, 2015You have the getfield string and split round the wrong way 🙂 but the getfield option looks good;
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/tr" } {
pool [getfield [HTTP::host] "." 1 ]tr.example.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