Forum Discussion
Ken_Mitchell_13
Nimbostratus
Apr 03, 2007Translate uri and balance to different pools?
I have a production application which resides at a uri of /my/application.htm among many nodes in pool “default.” The url for this is abc.def.com.
I have other pools which use the same uri, but ...
Colin_Walker_12
Apr 04, 2007Historic F5 Account
If all you're trying to do is use the incoming URI to choose the pool to load balance to, and then update the URI, the code should be pretty straight forward.
Something like:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/testing" } {
set myPool "test"
} elseif { [HTTP::uri] starts_with "/dev" } {
set myPool "dev"
}
HTTP::uri "/my/application.htm"
pool $myPool
}
HTH,
Colin
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