Forum Discussion
adransfield_177
Nimbostratus
Dec 11, 2014TCL 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...
nitass_89166
Noctilucent
Dec 11, 2014can you try this?
when HTTP_REQUEST {
if { [HTTP::host] contains "unstable" || [HTTP::host] contains "services" || [HTTP::host] contains "e2" } {
HTTP::redirect "http://host.server.com[HTTP::uri]"
} else {
HTTP::respond 403
}
}
- adransfield_177Dec 11, 2014
Nimbostratus
That didn't quite work. I had to remove " " " before the f5 would accept the iRule for syntax. Now when I run the iRule I get another error --> "error: [parse error: extra characters after close-quote]" This was pretty much the same error that the f5 was giving me before it would accept the syntax.
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