Forum Discussion
James_Quinby_46
Jun 19, 2009Historic F5 Account
That should work fine, with a slight adjustment for correct syntax and a bit of string normalization:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "battery"} {
pool apache_pool
}
}
There's a bit more elaboration on the 'contains' bit here:
http://devcentral.f5.com/Wiki/default.aspx/iRules.contains