Forum Discussion
What_Lies_Bene1
Nov 25, 2013Cirrostratus
A few []'s in the wrong place. Also, you can't use wildcards with an 'equals'.
when HTTP_REQUEST {
log local0. "Client [IP::client_addr]"
if { ( [IP::addr [IP::client_addr]] equals "x.x.x.x" ) and ( [string tolower [HTTP::uri]] starts_with "/someuriwithparameters" ) } {
log local0. "Client [IP::client_addr] matched case 1"
pool POOL1
}
if { ( [IP::addr [IP::client_addr]] equals "y.y.y.y") and ( [string tolower [HTTP::uri]] starts_with "/someuriwithparameters2" ) } {
log local0. "Client [IP::client_addr] matched case 2"
pool POOL1
}
}