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...
hoolio
Cirrostratus
Sep 09, 2009That sounds about right. You could add a check in the ProxyPass iRule to exit the HTTP_RESPONSE event immediately if the status is a 404. Something like this should work at the top of the ProxyPass HTTP_RESPONSE event:
when HTTP_RESPONSE {
Exit this event in this rule if the server response is a 404 as we send a custom response for 404s from another rule
if {[HTTP::status] == 404}{
return
}
}
Aaron
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