Forum Discussion
Chris_Miller
Feb 03, 2011Altostratus
I assume these servers all in the same pool? If so, it'd be better to specify a pool member than a node. You can't use [HTTP::uri] from LB_SELECTED so HTTP_REQUEST is a good spot for this.
You'll probably end up with something like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*/server=7*" { pool poolname member 192.168.1.7 80 }
"*/server=8*" { pool poolname member 192.168.1.8 80 }
default { pool defaultpool }
}
}
Will also possibly need OneConnect for this,