Forum Discussion
TCl error
Hi All,
Wanted to know why i am getting this error again and again?
TCL error: /Common/iRule_https_redirect_301 - Operation not supported. Multiple redirect/respond invocations not allowed (line 1) invoked from within "HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]"
Below is current Irule:
iRule_https_redirect_301
iRule_https_redirect_301
when HTTP_REQUEST {
HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
- PeteWhite
Employee
Presumably something else is doing a redirect or response. Are there other iRules assigned or something in the http profile?
- youssef1
Cumulonimbus
Hi Sagar,
The problem is that you don't condition your redirect/respond. You have to condition it, example:
when HTTP_REQUEST { if {[HTTP::uri] starts_with "/redirect"} { HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri] } }
So you have ton condition your respond or you will trigged it to each request.
regards,
- sagar33_370912
Nimbostratus
Yes, earlier two irlues were there but both of them were assigned to different virtual servers.
- PeteWhite
Employee
OK, are there any other iRules assigned to this virtual server? Can you post the config or maybe PM me an iHealth link?
- sagar33_370912
Nimbostratus
Done, please check and update me asap.
- sagar33_370912
Nimbostratus
Hi Pete,
Any update?
- PeteWhite
Employee
The issue is that there are multiple iRules running on the virtual server. These will all be run for each request and there are multiple redirects and responses which are causing clashes. The long-term answer is to review these, move them to a single iRule or preferably LTM policy which is easier to manage. In the short term, you can stop the further iRules from being triggered by using
after the redirect command.event disable all
eg
when HTTP_REQUEST { HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri] event disable all }
Recent Discussions
Related Content
* 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