Forum Discussion

  • Try this:

     
    when HTTP_REQUEST {
        if { [TCP::local_port] == 443 } {
            HTTP::redirect "http://[getfield [HTTP::host] ":" 1 ][HTTP::uri]"
        }
    }
    
  • Could be wrong (no irule expert)

     

     

    looking at the irue redirect generator for http>https:

     

     

    when HTTP_REQUEST {

     

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

     

    }

     

     

     

    I would just change the section HTTP::redirect https:// on the 2nd line to HTTP:redirect http:// and enable this on virtual server listening on the https port

     

     

    not tested but that makes the most sense to me

     

     

    regards

     

    W60