Forum Discussion
Kevin_Stewart
Jul 02, 2014Employee
At some point you may want to switch to a switch (pun intended) for an easier read. As for sending traffic to a specific node, you can use the node command directly, or a variation of the pool command if the node is a member of a pool:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/test1*" {
pool pool1
}
"/test2*" {
pool pool2
}
"/forum*" {
pool pool1 member 10.80.0.1 80
node 10.80.0.1 80
}
}
}