Forum Discussion

Pete_Paiva_7147's avatar
Pete_Paiva_7147
Icon for Nimbostratus rankNimbostratus
Sep 19, 2012

http to http redirection

HTTP Pool:

 

10.1.1.1 14000

 

10.1.1.2 14000

 

HTTP VIP:

 

10.0.0.1:80

 

 

HTTPS Pool

 

10.1.1.1 14001

 

10.1.1.2 14001

 

HTTPS VIP:

 

10.0.0.1:443

 

 

I have a request to redirect https://10.0.0.1 gets mapped to

 

 

Thanks!

 

  • HTTP VIP:

     

    Use the built-in HTTP-to-HTTPS iRule.

     

     

    HTTPS VIP:

     

    when HTTP_REQUEST {

     

    if { [HTTP::uri] equals "/" } {

     

    HTTP::redirect "/identity"

     

    }

     

    }

     

     

    Questions:

     

    1. Do you need to have the port appended to the HTTPS host value?

     

    2. Do you want to redirect the user to /identity, or transparently change the URI on ingress?

     

  • Hi Kevin,

     

     

    Thanks so much I'll try that.

     

     

    To answer your questions:

     

    1. Yes, the application owner is requesting that the port be appended.

     

    2. Redirecting the user to /identity should suffice.