Forum Discussion
The_Bhattman
Aug 15, 2009Nimbostratus
Hi,
You could also write it like the following:
when HTTP_REQUEST {
if { [HTTP::uri] contains ".img" } {
pool testpool2
} else {
pool testpool
}
}
or
when HTTP_REQUEST
if {([HTTP::host] eq "www.yourdomain.com") and ( [HTTP::uri] contains ".img" ) } {
pool testpool2
} else {
pool testpool
}
}
Click here to see how you can change the 2 operators to suit your needs