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 create...
Deb_Allen_18
May 31, 2006Historic F5 Account
If (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:
when HTTP_REQUEST {
if { [HTTP::uri] eq "/prod/ups" } {
[HTTP::uri] "/receiver/ups"
pool y.y.y.y
}
}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] starts_with "/prod/ups" } {
[HTTP::uri] [string map {/prod/ups /receiver/ups} [HTTP::uri]]
pool y.y.y.y
}
}/debHelp 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