Forum Discussion
cvitale_103614
Nimbostratus
Feb 08, 2009Redirecting https request
Hello,
Setting up a single BigIP 1600 for a client. Fairly unfamiliar with BigIP and need some help with a client request.
Client wants to redirect incoming request from HTTPS://XYZ.XYZ.ORG to HTTPS://XYZ.XYZ/xlWebApp/
So the client wants to append the incoming HTTPS request to virtual server and append "xlWebApp/" and direct to VS pool defined apps servers.
I know this redirect is normally handled in the application servers but the client is requesting this be done by the load balancer.
Not sure what "xlWebApp/" actually points to at this time.
Any help / examples much appreciated. Thanks.
- The_Bhattman
Nimbostratus
Here is an untested example that depicts what you are trying to do, which is HTTPS to HTTPS redirectswhen HTTP_REQUEST { if { ([TCP::local_port] == 443) && ([HTTP::host] equals "XYZ.XYZ.ORG") } { HTTP::respond 301 Location "HTTPS://XYZ.XYZ/xlWebApp/" pool vs_app_server } }
- dennypayne
Employee
And, just to clarify, this won't work at all unless you are doing SSL offload on the BIG-IP. If you are just passing 443 through to the webserver the iRule can't see any of the traffic. - Yoda_34023
Nimbostratus
I have a similar requirement, but this is SSL pass-through. - crocketv_18020
Nimbostratus
Thanks for the feedback. I also need to ensure that during the redirect, the original value of the HTTP REFERRER is preserved and does not change. thanks. - hoolio
Cirrostratus
Crockettv,
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