Fotios_30046
Nov 18, 2009Nimbostratus
Send Request To Pool If Certain HTTP_URI
I have a virtual server setup with a default pool. We have a third party appliance we want to use if anyone hits a certain subfolder of our site, www.site.com/products. There will probably be something after the products, so I need to rule to look for products and possibly anything after then send it to a different pool.
Here's what I have so far.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/products" } {
pool Appliance.
}
}
I don't need to make any changes to the virtual server except for adding this iRule, right?