Forum Discussion
MVA
Jul 01, 2014Nimbostratus
Try this - https://devcentral.f5.com/wiki/iRules.http__uri.ashx
The sample irule should work for your use case, for example:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/test1" } {
pool test1_pool
} elseif { [HTTP::uri] starts_with "/test2" } {
pool test2_pool
}
}