Forum Discussion
eduardo_26187
Nimbostratus
Feb 24, 2010iRules 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
