AlexDeMarco
Feb 07, 2013Nimbostratus
irule for specific uri
I have the following Irule:
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/finance") } then {
if { [active_members TEST_FIN_Web_7776] < 1 } {
HTTP::redirect http://www.myurl.com/templates/pagenotavilable.html
}
snat automap
pool TEST_FIN_Web_7776 }
}
The problem is it trips up on the following requests:
/finaance/ does not process this
/financeadmin trys to send to the pool when it should leave it alone.
WHat I need is a rule that handle:
/finance
/finance/
/finance/*
I have tried you ends_with and equal but I just can't get the combinatoin right..
Any help/pointers would be appreciated.
THanks!
- Alex