Forum Discussion

Derrick_85757's avatar
Derrick_85757
Icon for Nimbostratus rankNimbostratus
Feb 12, 2009

Virtual Server port 443 to port 5307 redirection

I have a client requesting that all requests to virtual server w.x.y.z:443 get redirected to w.x.y.z:5307. I am familiar with http to https redirection but not quite sure how to do the iRule for this redirection. Any help would be appreciated.

1 Reply

  • You will have to do SSL offload to be able to do an HTTP redirect; if you are not decrypting at the LTM then you will not be able to invoke the HTTP_REQUEST event in a rule.

    But if you are doing SSL offload the rule should be simple:

      
     when HTTP_REQUEST {  
     HTTP::redirect "https://w.x.y.z:5307"  
     }  
     

    EDIT: The redirect could be https:// or http:// depending on what's required for 5307

    Denny