Forum Discussion
rjordan
May 04, 2011Nimbostratus
I also tried the rule below but it behaves the same way. I need any request from 1.2.3.4 to direct to 192.168.10.10 80, regardless of the hostname. Instead, it is directing the request to one of the pools.
when HTTP_REQUEST {
if { [IP::remote_addr] equals 1.2.3.4 } {
node 192.168.10.10 80
}
if { HTTP::host contains "domain1.com" } {
pool domain1.com_pool
}
elseif {HTTP::host contains "domain2.com" } {
pool domain2.com_pool
}
else {
pool domain.com_pool
}
}