Forum Discussion
Vijay_E
Dec 05, 2016Cirrus
Assuming that you have configured default pool within the VS configuration, you can use an iRule like this modified from @jhass' iRule:
when CLIENT_ACCEPTED {
set DEFAULT_POOL [LB::server pool]
}
when HTTP_REQUEST {
if {[string tolower[HTTP::uri]] starts_with "/abc"} {
pool pool1
} elseif {[string tolower[HTTP::uri]] starts_with "/def"} {
pool pool2
} else {
pool DEFAULT_POOL
}
}