Forum Discussion
What_Lies_Bene1
Nov 25, 2013Cirrostratus
Apologies IP::addr always catches me out. This should work;
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
}
}