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...
Colin_Walker_12
May 31, 2006Historic F5 Account
The 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"
}Note that I used "x.x.x.x"...this would be a redirect back to the hostname or IP of the Virtual in question. This would, however, hit a different VIP, since it would come in on port 80, rather than port 443.
So, you'd have to VIPs set up with the same IP, one on port 443, with the above rule applied, and one on port 80, without the above rule.
The second VIP would have your pool as a resource, and traffic would be passed to the servers with the modified URI.
The other option would be to terminate SSL on the BIG-IP, and modify the URI before the request was sent to the server, and re-write it on the way to the client, but that's more involved. If having a redirect in place is an acceptable solution, it's much simpler.
HTH,
Colin
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