If you define the collection of IP:ports for the /raj URIs in one pool and the other IP:ports in a second pool, you can use an like this to select between the two pools:
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/raj*" {
pool poo_raj_abc
}
default {
pool pool_abc
}
}
}
You could also use the node command to send to a specific node and port combination if you can’t configure the pools properly, but Aaron’s solution above is the most simple and scalable.
If you create 2 pools as above , so u need to create 2 vs , right?
vs1 ------ port 1245
vs2-------port 9876
Nope, LTM will perform port translation for you. Your VS can be port 80, pool 1 members can listen at 1245, pool 2 members can listen at 9876, and LTM will translate the destination port from 80 to whichever port for which the members are configured.