Forum Discussion
JoelS_272975
Nimbostratus
Apr 12, 2017Redirect traffic to specific nodes based on URI with non-standard port
We are trying to send all traffic containing a two specific URIs to two specific nodes (with non-default port numbers) in a single pool, while all other requests are directed to two other nodes in th...
Jason0_309417
Cirrus
Apr 17, 2017I usaully use a URI forwarding policy to direct traffic based off URI. You can setup a different pool, with whatever port you want, for each special URI and use the virtual server's default pool for all other traffic
Local Traffic >> Policy
Rule X: HTTP URI path starts with /X Forward traffic to pool testsite.uri.X
Rule Y: HTTP URI path starts with /Y Forward traffic to pool testsite.uri.X
JoelS_272975
Nimbostratus
Apr 18, 2017Thanks Jason. That does seem more efficient. I haven't ever messed with policies to be honest. However, I'm guess the configuration would look something like this (we are running 11.6 code):
Policy
Strategy: First-Match
Requires: http
Controls: forwarding
Rules
Conditions.
operand: http-uri
event: request*
selector: path
condition: equal (or contains)
*/X
*/Y
Actions
Target: Forward
Event: Request
Action: select
Parameter: pool (POOL-ABC)
Does that look correct based on your experience?
Thanks in advance!
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