You can just use the pool command with the member. You don't need to use LB::reselect in this case. The pool wiki page has some examples (
Click here).
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "xyz.com" } {
pool myPool member 10.1.2.100 80
} elseif {[string tolower [HTTP::host]] equals "abc.com" }
pool myPool member 10.1.2.200 80
} else {
take some default action?
}
}
You might also want to check if the pool member is up before using it. You can do this with LB::status pool member (
Click here)
Aaron