F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Gerald81_174250's avatar
Gerald81_174250
Icon for Nimbostratus rankNimbostratus
Oct 29, 2014

https-to-http iRule

We want https://uri to hit POOL_80 via http

 

when HTTP_REQUEST { if { [string length [HTTP::host]] } { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] } else { HTTP::redirect http://[IP::local_addr][HTTP::uri] } }

 

1 Reply

  • R_Eastman_13667's avatar
    R_Eastman_13667
    Historic F5 Account

    Try this, I assume that this will be applied to a virtual server that is configured for port 443 only?

    when HTTP_REQUEST { 
        if { [HTTP::uri] eq "uri" } { 
                pool POOL_80
           } 
        else { 
               pool DEFAULT_pool
            } 
    }