Forum Discussion

Mark_Cloutier's avatar
Mark_Cloutier
Icon for Nimbostratus rankNimbostratus
Nov 04, 2009

redirecting http to https, keeping uri

Adobe has freely admitted a bug in their 7.5 upgrade to their Adobe Connect app. If a user tries to enter a meeting using the nonsecure VIP, http://connect.company.com/somemeeting, it redirects to https://connect.company.com/somemeeting, but posts the login prior to getting it from the user, an error page is generated. So I have been asked to do the redirection at the F5. I will be setting up the ssl termination on the ltm first. So what I need is an iRule I think that will take any request sent to the http vip and send and https redirect, while maintaining the rest of the URI. Any help would be greatly appreciated
  • Something as easy as this could work for you - bind it to your HTTP virtual server:

     
     when HTTP_REQUEST { 
     HTTP::redirect "https://[HTTP::host][HTTP::uri]" 
     } 
     

    HTH,

    -Matt
  • Hello all,

     

    So how would you do a redirect from https to http? You would need another virtual server that accepts request over port 443 and redirect to http. One thing to becareful about is doing a infinite loop. Can any of you assist me with this issue?

     

     

    Thanks.

     

     

    Regards,

     

    TRX
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi TRX,

     

     

    See the other post you replied to for a suggestion:

     

     

    http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&postid=10100&view=topic

     

     

    Thanks,

     

    Aaron