Forum Discussion

Shamsul_Alam_34's avatar
Shamsul_Alam_34
Icon for Nimbostratus rankNimbostratus
Mar 17, 2018

http to https using iRule not working

Hi,

 

Im trying to redirect http connection to https using policy but it now working. I'm getting "This site can’t be reached" on my browser. Below is my policy setting and virtual server. Any help much appreciated.

 

Policy: I try this:

 

tcl:https://[getfield [HTTP::host] \":\" 1][HTTP::uri]

 

And this as well. Both not working

 

tcl:https://[getfield [HTTP::host] ":" 1][HTTP::uri]

 

 

 

 

2 Replies

  • I have applied http2https policy but didn't see any issue. Any other irule/policy has applied to this VIP? if yes, please check the condition.

    If this is the 1st policy you are applying then create fresh policy and follow guidelines. Link below.

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

    In vip

    Protocol(client) profile: tcp-wan-optimize & protocol(server) profile: tcp-lan-optimize.

    Let us know if still any issue.

    • Shamsul_Alam_34's avatar
      Shamsul_Alam_34
      Icon for Nimbostratus rankNimbostratus

      I follow all the steps for version 12.0 later and still not working. Do i need to have two virtual server with same IP but different port?