Forum Discussion
Scott_83827
Apr 10, 2012Nimbostratus
Log Not Showing Modified URI
The script below works properly. If the uri contains /hh/ then changes the extention from .cfm to .aspx and sends the request to the MigrationPool pool. So if you go to http://nowhere.com/hh/test.cfm ...
Michael_Yates
Apr 10, 2012Nimbostratus
Hi Scott,
The comment from the [HTTP::uri] wiki page is saying that when you are using the Priority inside of an iRule it can impact the output of what you are trying to log.
The Priority Command can be used for events inside of an iRule or on the entire iRule in cases where you have numerous iRules applied to a single Virtual Server.
The easiest way to see what it is describing is to create one iRule that will log the value of the incoming [HTTP::uri] and then log it.
Then create a second iRule that will just log the value of the [HTTP::uri], and put this iRule BELOW the first.
The first iRule will log and modify the value, and the second will display the results set by the first.
You could accomplish the same results by setting the iRule Priority (which would negate the order of the iRules in the list).
First iRule:
when HTTP_REQUEST {
log local0. "First iRule HTTP::uri Value: [HTTP::uri]"
HTTP::uri "/something"
}
Second iRule:
when HTTP_REQUEST {
log local0. "Second iRule HTTP::uri Value: [HTTP::uri]"
}
Hope this helps.
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