Forum Discussion
Aaron_Tebo_7015
Nimbostratus
Sep 03, 2009ProxyPass rule give error
I am using this rule from devcentral. http://devcentral.f5.com/wiki/default.aspx/iRules/ProxyPass.html
On some of my redirects I get the following error on execution:
TC...
Aaron_Tebo_7015
Nimbostratus
Sep 09, 2009Here is the 404 rule:
when RULE_INIT {
set error_404 {
Page Not Found
[HTTP::status] Error
Page Not Found
The requested URL
$HTTP_URI was not found on this server.
}
}
when HTTP_REQUEST {
set HTTP_URI [HTTP::uri]
log local0. [HTTP::host]
log local0. [HTTP::path]
}
when HTTP_RESPONSE {
log local0. [HTTP::status]
log local0. [HTTP::host]
if { [HTTP::status] == 404 } {
HTTP::respond 404 content [subst $::error_404]
}
}
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