You can test this by using a test string and a switch statement in the RULE_INIT event:
when RULE_INIT {
set ::test_uri /search/blah
log local0. "test string: $::test_uri"
switch -glob $::test_uri {
/search/blah* { log local0. "matched /search/blah*" }
/search/blah/foo* { log local0. "matched /search/blah*" }
/search/blah* { log local0. "matched /search/blah*" }
default { log local0. "didn't match any"}
}
}
From the command line, you can run 'tail -f /var/log/ltm' to see the log statements.
If you want two different actions for /search/blah* and /search/blah/newsearch/search/*, you could either put *newsearch* before /search/blah* or make /search/blah* more specific so it doesn't match /search/blah/newsearch/search/*.
Aaron