Forum Discussion

Praful's avatar
Praful
Icon for Nimbostratus rankNimbostratus
Mar 18, 2021

iRule HTTPS(443) to HTTPS(8701)

I am having difficulty finding a iRule or creating that would auto route HTTPS(443) to HTTPS(8701).

I have set up HTTP(80) to HTTPS(8701) that was pretty straight forward using this

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

Any help will be greatly appreciated.

  • I think it should be:

     

    when HTTP_REQUEST {

    HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]:8701

    }

     

    if there are issues also test

     

     

    when HTTP_REQUEST {

    HTTP::redirect "https://[getfield [HTTP::host] ":" 1][HTTP::uri]:8701"

    }

     

     

    Also see:

     

    https://clouddocs.f5.com/api/irules/HTTP__redirect.html

     

    https://support.f5.com/csp/article/K15117465

     

     

     

    You can also use Local Traffic policy https://support.f5.com/csp/article/K26312346 and I think this way it will be better.

     

    • Praful's avatar
      Praful
      Icon for Nimbostratus rankNimbostratus

      Hey  Thanks for your reply. We were able to resolve the issue. One of our team members was able to get that working. 😀