Forum Discussion

starboy's avatar
starboy
Icon for Cirrus rankCirrus
Sep 30, 2019

http2https redirection

Hi All

 

i want http://www.abc.com to be redirected to https://www.abc.com and i already configured the builtin irule and also configure policy at different times however it is not working at all. Even the policy redirection blocks the page at all even the https one that was working what will be the possible reason and solution

 

Regads

  • Stanislas_Piro2's avatar
    Stanislas_Piro2
    Sep 30, 2019

    the irule _sys_https_redirect MUST NOT BE APPLIED to the HTTPS virtual server...

     

    this irule MUST BE ASSIGNED to a NEW HTTP virtual server listening on port 80

  • you have to create 2 virtual servers

     

    • virtual server http listening on port 80 with http profile and builtin irule
    • virtual server https listening on port 443 with http and client SSL profile
  • @Stanislas Piron

    it converts the http to https however still not working it gives the following message "The page isn’t redirecting properly" when the page displays

      • starboy's avatar
        starboy
        Icon for Cirrus rankCirrus

        no the same message appears on both http and https://www.abc.com

    • Stanislas_Piro2's avatar
      Stanislas_Piro2
      Icon for Cumulonimbus rankCumulonimbus

      and of course, the http and https virtual servers are listening on the same IP address.

    • Stanislas_Piro2's avatar
      Stanislas_Piro2
      Icon for Cumulonimbus rankCumulonimbus

      So first, you have to make the https virtual server working, before working with http2https redirection...

       

       

      • Stanislas_Piro2's avatar
        Stanislas_Piro2
        Icon for Cumulonimbus rankCumulonimbus

        the irule _sys_https_redirect MUST NOT BE APPLIED to the HTTPS virtual server...

         

        this irule MUST BE ASSIGNED to a NEW HTTP virtual server listening on port 80