Forum Discussion

cezmic_14413's avatar
cezmic_14413
Icon for Nimbostratus rankNimbostratus
May 17, 2007

SSL redirect

Hi everybody

 

I like to know if it's possible to redirect something like that :

 

http://my.domen.com

 

to:

 

https://my.domen.com :5554/app

 

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Sure! 😄

    All you'd need is a port 80 only virtual server with an iRule that looks something like:

    
    when HTTP_REQUEST {
      if { [HTTP::host] equals "my.domen.com"} {
        HTTP::redirect "https://[HTTP::host]:5554/app"
      }
    }

    Then another virtual server to handle the traffic once it's redirected to port 5554. Alternatively you could create just one Virtual Server and add some extra logic to the rule to ensure that only the port 80 requests are redirected.

    HTH,

    Colin