Forum Discussion

eduardo_26187's avatar
eduardo_26187
Icon for Nimbostratus rankNimbostratus
Feb 24, 2010

iRules that sometimes executes

Hi there !

 

 

I need to solve the mystery with an iRule which sometimes executes and sometimes it doesn't.

 

 

In iRule statistics section I can see that my iRules has 14734 executions and 747 failures. This happens when I request http://server and it should take me to https://server/Login.jsp but it happens sometimes. Afterwards if I want to change manually http in stead of https the iRules always apply.

 

 

The problem is the first time when I request with http and not always redirects to https.

 

 

 

 

when HTTP_REQUEST {

 

 

Check if the URI is /

 

if {[HTTP::path] eq "/"}{

 

HTTP::redirect "https://[HTTP::host]/Login.jsp"

 

}

 

 

set uri [HTTP::uri]

 

if {

 

[TCP::local_port] == 80

 

} {

 

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

 

}

 

}

 

 

I already checked my firewall and all the request goes through the bigip
No RepliesBe the first to reply