Forum Discussion
Christofer_Tib1
Nimbostratus
May 31, 2006How to forward requests to subfolders in pool?
Hi,
I'm very sorry for my simple question!
We have an incomming https://x.x.x.x/prod/ups that needs to be changed/passed on to http://y.y.y.y/receiver/ups.
We have created a pool for y.y.y.y but how can we get it to /receiver/ups/ ?
Is there any simple wat to do that?
Many thanks in advance.
- 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 } }
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