Forum Discussion

Patrick_Mullane's avatar
Patrick_Mullane
Icon for Nimbostratus rankNimbostratus
Aug 22, 2013

iRule won't Execute on HTTPS Virtual

I have created the following simple iRule to append additional URI information when it's ommitted.

 

when HTTP_REQUEST { if { ([HTTP::uri] == "/") } { HTTP::uri /D3VSOC/ } }

 

I have the iRule applied to both my http and https virtual servers. This works fine on my http virtual that is doing a sys-redirect to https (http://d3/), but it doesn't execute when applied to my https virtual. I watch the stats and it incements normally when http://d3/ is entered on the browser, but does not execute (Total Executions does not increase) when https://d3/ is input.

 

We are using Client side encryption only (SSL-Offload), so the Virtual is using HTTPS on 443 and the pool servers are http on port 80.

 

What am I missing here. Any assistance you can provide would be most appreciated.

 

1 Reply

  • Try this:

    when HTTP_REQUEST {
        log local0. "URI = [HTTP::uri]" 
        if { [HTTP::uri] equals "/" } { 
            HTTP::uri "/D3VSOC/" 
        } 
    }
    

    Tail the /var/log/ltm log to see what the iRule is doing.