Forum Discussion
AlexDeMarco
Nimbostratus
Feb 07, 2013irule 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
1 Reply
- AlexDeMarco
Nimbostratus
ok.. well I switched fomr using http::uri to http:path and now things are working better..
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects