Craig_17655
Aug 14, 2009Nimbostratus
iRule for Redirrecting based upon URI
I am trying to replace some apache functionality using iRules. I have the following rules set up in apache:
SetHandler matrix
SetCluster imgserver
So basically, if the URI contains .img I send the request to a different set of servers that handles the requests.
I am looking for advise as I am new to irules and have not found many examples. I think it is something like this:
when HTTP_REQUEST {
set uri [HTTP::uri]
if { $uri contains ".img" }
pool testpool2
}
else {
pool testpool
}
Any help would be greatly appreciated.