Forum Discussion
Albert_Aguinaga
Sep 20, 2012Nimbostratus
Hi - 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.