Forum Discussion
2 Replies
Sort By
- Colin_Walker_12Historic F5 AccountThe best way to do this, if you're actually intending to change the protocol as well as the URI, is via a standard HTTP redirect. This would look like:
when HTTP_REQUEST { HTTP::redirect "http://x.x.x.x/receiver/ups" }
- Deb_Allen_18Historic F5 AccountIf (as Colin mentions) you're terminating SSL at the BIG-IP, and you just need to forward to the server in cleartext but with a different URI, you could use something like:
If you need to replace the "/prod/ups" string and leave the rest of a longer URI intact, you can use string map:when HTTP_REQUEST { if { [HTTP::uri] eq "/prod/ups" } { [HTTP::uri] "/receiver/ups" pool y.y.y.y } }
/debwhen HTTP_REQUEST { if { [HTTP::uri] starts_with "/prod/ups" } { [HTTP::uri] [string map {/prod/ups /receiver/ups} [HTTP::uri]] pool y.y.y.y } }