Forum Discussion
xett_113697
Nov 27, 2007Nimbostratus
This is the error I get when I try to update the iRule:
01070151:3: Rule [persist_to_server] error:
line 5: [wrong args] [URI::query [HTTP::uri] f5host]
Here is the iRule:
when HTTP_REQUEST {
set requested_host ""
log local0. "URI: [HTTP::uri]"
log local0. "Parsed value: [URI::query [HTTP::uri] f5host]"
switch $requested_host {
"" {
pool my-pool
}
"long" {
node 10.0.0.10
}
"orbw" {
node 10.0.0.11
}
default {
pool my-pool
}
}
}