Forum Discussion
Peter__Draper_7
Nimbostratus
Jan 27, 2005Logging requested URI on a 404 redirect rule
I am starting to use iRules on 9.0.3 and am redirecting to a static IP of a virtual server when a 404 is received. I am logging the fact that a 404 has ben seen but would like to add in the requested...
Peter__Draper_7
Nimbostratus
Jan 28, 2005For info the very basic rule is
when HTTP_REQUEST {
set log_uri [HTTP::uri]
}
when HTTP_RESPONSE {
set debug "1"
if {[HTTP::status] equals "404"} { HTTP::redirect "http://10.10.8.106"
if $debug {log local0. "404 error $log_uri -redirected to 10.10.8.106"}
}
}
Thanks
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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