Forum Discussion
Sep 24, 2008
Please help - can't understand error in this case
Very simple irule, basically I want to send to one of two pools based on some criteria.
In parsing, I get an error:
line 5: [parse error: PARSE syntax 192 {syntax error ...
hoolio
Cirrostratus
Sep 24, 2008Hi,
I'd first try moving the elseif and else to the same line as the preceding "}":
when HTTP_REQUEST {
if { ([HTTP::uri] contains "a.m") || ([HTTP::uri] contains "b.m")} {
pool test-new
} elseif { ([HTTP::host] contains "abc.xyz.com") && ([HTTP::cookie] exists "cookieid")} {
pool test-new
} else {
pool test-old
}
}
If that doesn't work, can you post the new error?
Thanks,
Aaron
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
