adransfield_177
Dec 11, 2014Nimbostratus
TCL Expected Boolean Error
Looked on the forums for this particular error and maybe some way to resolve it. Unfortunately there isn't much on the way of this problem. Hoping someone a little better at iRules than I can help me out. Trying to get this rule to work. The idea is that if someone tries to hit any of the host URLS it redirects to 1 specific one, but keeps the URI.
Code
when HTTP_REQUEST {
if {{ [HTTP::host] contains "unstable"} || { [HTTP::host] contains "services"} || { [HTTP::host] contains "e2"}} {
HTTP::redirect { "host.server.com/[HTTP::uri]" }
} else {
HTTP::respond 403
}
}
No matter what I try, I either get an expected boolean error or it makes the f5 hang for a while then kind of turn back on. Any help would be appreciated. Thanks.