Forum Discussion
eduardo_26187
Nimbostratus
Mar 17, 2010iRule 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 "...
Albert_Aguinaga
Nimbostratus
Sep 20, 2012Hi - I'm getting the following error:
Sep 9 07:09:42 local/tmm err tmm[5253]: 01220001:3: TCL error: ir_final_maintpage - Operation not supported. Multiple redirect/respond invocations not allowed (line 12) invoked from within "HTTP::respond 503 content "Hanley Wood, LLC - Maintenance Page
Here is my iRule:
when HTTP_REQUEST {
sets the timer to return client to host URL
set stime 10
Use the Host header value for the responses if it's set. If not, use the VIP address.
if {[string length [HTTP::host]]}{
set host [HTTP::host]
} else {
set host [IP::local_addr]
}
Check if the URI is /maintenance
switch [HTTP::uri] {
"/maintenance" {
Send an HTTP 503 response with a Javascript meta-refresh pointing to the host using a refresh time
HTTP::respond 503 content \
"Hanley Wood, LLC - Maintenance Page\
This webpage is currently unavailable; please check back again shortly.
" "Content-Type" "text/html"
return
}
}
If the pool_testLB is down, redirect to the maintenance page
if { [active_members [LB::server pool]] < 1 } {
HTTP::redirect "http://$host/maintenance"
return
}
}
So, I'm thinking about using the TCP::close option but am not sure where to put this. Any thoughts as to why these TCL errors keep showing up?
Thanks in advance.
-Albert.
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