Forum Discussion
Simon_Blakely
Jul 23, 2018Employee
It looks like you have incorrectly balanced braces.
Try:when RULE_INIT {
set static::Poolxyz_select_debug 1
log local0. "Poolxyz_select"
}
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] starts_with "api-dev" } {
switch -glob [string tolower [HTTP::uri]] {
/someURI {
pool XYZ
if {$static::Pool_select_debug eq 1} {
log local0. "[IP::client_addr] with URI of [HTTP::uri] went to XYZ Pool"
}
}
}
}
}
I think this is the logic you are trying to implement.