Forum Discussion
AshuA_246482
Nimbostratus
Nov 27, 2017Redirect the traffic based on uri
Hi
I have to create a i-rule for a request mentioned below.
The users will be using the same URL, but different URIs and should be redirected to different ports and URIs on the servers.
I have tried...
Andy_McGrath
Cumulonimbus
Nov 29, 2017Think this is what you want to do, match a URI set change the URI before selecting a node to forward on to.
Technically you do not need the final default pool so I have left it out, will select this by default if the iRule returns without making a pool or node selection.
when HTTP_REQUEST {
if {[HTTP::uri] contains "/abc/efg/Contract" } {
HTTP::uri "/acldata.asmx"
node 172.27.117.68 89
} elseif {[HTTP::uri] contains "/xyz_QuotationService"} {
HTTP::uri “/ACLData.asmx"
node 172.27.117.68 99
}
}
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
