Srinivasan_G_31
Oct 29, 2012Nimbostratus
iRule assistance - Combining iRules
Hi,
I want to combine following 2 iRules into 1. Please assist.
iRule 1
----------
when HTTP_REQUEST {
if { [HTTP::uri] contains "/abcd/" } {
pool abcdpool member 1.1.1.1 80
}
}
iRule 2
----------
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"*[0-9][0-9][0-9][0-9]*" { pool abcdpool member 1.1.1.1 80
default abcdpool }
}
}