Forum Discussion
Local Traffic Policy redirect traffic to Pool and Pool Member
Hi,
It's possible with Policy to redirect traffic to a specifit pool member of a pool.
Example iRule:
when HTTP_REQUEST { switch -glob [HTTP::uri] { "/xxx" { pool pool_xxx node 10.10.10.10 8080 } "/yyy" { pool pool_yyy node 20.20.20.20 8080 }
} }
Thanks in advance for your help.
2 Replies
- TayF5un
Nimbostratus
hi Eloy, I think, you should apply this irule;
when HTTP_REQUEST { switch -glob [HTTP::uri] { "/xxx" { pool pool_xxx member 1.1.1.1 80 } "/yyy" { pool pool_yyy member 1.1.1.1 80 } } } - Anthony
Nimbostratus
if { [HTTP::uri] eq "/xxx" } { pool pool_xxx member 20.20.20.20 8080 }
Then by all means expand with if/else conditions.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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