eduardo_26187
Mar 17, 2010Nimbostratus
iRule multiple redirect/respond invocations not allowed
Hi all,
There is a rule which is sending these messages to the logs, although the rule it's redirecting correctly. Nevertheless I have reports that some people visit the web page with "http" but it doesn't redirect to "https".
How could be possible that sometimes redirects and in few cases it doesn't?
This is my log:
Mar 17 08:59:02 tmm1 tmm1[12154]: 01220001:3: TCL error: rule_redirect_http2https - Operation not supported. Multiple redirect/respond invocations not allowed (line 1) invoked from within "HTTP::redirect "https://[HTTP::host]/Login.jsp"
Mar 17 09:03:59 tmm1 tmm1[12154]: 01220001:3: TCL error: rule_redirect_http2https - Operation not supported. Multiple redirect/respond invocations not allowed (line 9) invoked from within "HTTP::redirect "https://[HTTP::host]/Login.jsp"
This is the rule
when HTTP_REQUEST {
Check if the URI is /
if {[HTTP::path] eq "/"}{
HTTP::redirect "https://[getfield [HTTP::host] : 1]/Login.jsp"
}
if {
[TCP::local_port] == 80
} {
HTTP::redirect "https://[getfield [HTTP::host] : 1]/Login.jsp"
}
}
Thanks in advanced.