Forum Discussion

Gdub_105041's avatar
Gdub_105041
Icon for Nimbostratus rankNimbostratus
Aug 24, 2010

HTTPS Redirect

I am looking to do a redirect to an alternate port for SSL.

 

 

E.G.

 

https://www.mydomain.com:2500 (legacy) needs to redirects to https://www.mynewdomain.com

 

 

 

I have been reviewing all the Irules, but none state how to deal with https traffic. Note: SSL is enabled on both servers.

 

 

For Standard HTTP to HTTPS traffic, this will work.

 

 

when HTTP_REQUEST{

 

HTTP::redirect https://[HTTP::host][HTTP::uri]

 

}

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    If you're looking to simply redirect traffic without inspecting it, you can use the same iRule as above, since the HTTP_REQUEST event will still fire and the redirection will work...technically. It will throw all sorts of alarm bells if the client sees the host change, especially if the back-end cert doesn't match, but that's a separate issue.

     

     

    If you're looking to do inspection before redirection, then you'll need to terminate SSL on the LTM.

     

     

    Colin