Forum Discussion
Kevin_Davies_40
Aug 06, 2014Nacreous
You might find it easier to do this... create a new pool for each server called test1, test2 or test3 with just the single server in it.
when HTTP_REQUEST {
if {[HTTP::uri] contains testserver} {
pool test[URI::query [HTTP::uri] testserver]
}
}
Then you can specify individual server with http://my.site.com/?testserver=1
Alternatively you can do it without extra pools if you know the IP addresses.
Say your servers are
10.10.10.55 port 8080 10.10.10.56 port 8080 10.10.10.57 port 8080when HTTP_REQUEST {
if {[HTTP::uri] contains testserver} {
pool poolname member 10.10.10.[URI::query [HTTP::uri] testserver]
}
}
Then you can specify individual server with http://my.site.com/?testserver=55