Forum Discussion
Luke_56105
Nimbostratus
May 21, 2010pool set in irule overidden by httpclass
Hello,
I am try in catch a particular uri and send it to a pool via irule:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/myurl/" } {
pool mypool
...
Michael_Yates
Nimbostratus
May 21, 2010My initial thought was to use the Return command, but that won't work.
Note that return does not:
1. cause an exit from the iRule altogether;
2. prevent the same event from firing in another iRule; or
3. prevent the same event with a higher priority value from firing in the same iRule.
To prevent further processing of an event in the current rule or other rules for the current TCP connection, you can use 'event EVENT_NAME disable'.
Wiki for Return Command: http://devcentral.f5.com/wiki/default.aspx/iRules/return.html
I don't currently have any iRules that I'm working on where I would use it, so I'd be very interested in seeing what you come up with if this works for you.
Wiki for Event Command: http://devcentral.f5.com/wiki/default.aspx/iRules/event.html
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