Multiple pool and uri selections
I have a VIP that I am trying to do a couple of things with. 1. For HTTP traffic that meets a certain criteria I need to redirect my clients to different pools
- For other HTTP traffic I need to modify the destination URIs based on the requesting URIs.
So here's what I came up with:
(when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/dam-ws"} {
pool abc.xyz_8102
HTTP::uri "/dam-ws$1"
}
elseif {[HTTP::uri] starts_with "/ArtesiaVideo"}{
pool abc.xyz_8554
HTTP::uri "/ArtesiaVideo$1"
}
elseif {[HTTP::uri] starts_with "/teams/MetadataEditor"}{
pool abc.xyz_11090
HTTP::uri "/teams/MetadataEditor.do$1"
}
elseif {[HTTP::uri] starts_with "/mac/plain/recentlyUpdatedCompaigns"}{
pool abc.xyz_8088
HTTP::uri "/mac/plain/recentlyUpdatedCompaigns$1"
}
elseif {[HTTP::uri] starts_with "/media-portal/displayLink.action"} {
HTTP::uri "/mac/mp/asset/viewSearchBasket.htm$1"
}
elseif {[HTTP::uri] starts_with "/media-portal/download"} {
HTTP::uri "/mac/mp/download/a.htm$1"
}
elseif {[HTTP::uri] starts_with "/media-portal/displayAsset.action"} {
HTTP::uri "/mac/mp/download/asset/master.htm$1" } }
Will this do the trick?