My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 57: Implement equivalent to ProxyErrorOverride for WSGI applications.
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  Graham.Dumpleton
Closed:  Nov 21
Type-Enhancement
Priority-Low
Milestone-Release3.0


Sign in to add a comment
 
Reported by Graham.Dumpleton, Feb 20, 2008
WSGI folks believe that they should be in total control of the world, or in
the case of WSGI that the WSGI application should always be in complete
control of the content of any error response page.

The problem with this attitude is that when integrating a WSGI application
into a larger system hosted within Apache, it is not possible to easily
delegate generation of error page content to Apache, such that a consistent
error page style can be used for all applications hosted by the site.

In the case of mod_proxy there exists the ProxyErrorOverride directive,
which allows one to say that you want error pages generated by the back end
application to be ignored when appropriate, and allow Apache to generate
the content through its normal ErrorDocument directives.

An equivalent WSGIErrorOverride directive should be implemented to allow
WSGI applications to be better fitted into a large site where the WSGI
application isn't the only source of content, but just one contributor.

For details on ProxyErrorOverride see:

  http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyerroroverride

Implementing such a feature may be a little tricky because of the multiple
ways or returning content, ie., write(), iterable, file wrapper.
Comment 1 by Graham.Dumpleton, Mar 05, 2009
Added WSGIErrorOverride directive in revision 1217 of subversion trunk for 3.0. Note that the feature only works 
for daemon mode.
Status: Started
Labels: Milestone-Release3.0
Comment 2 by Graham.Dumpleton, Nov 21, 2009
Version 3.0 of mod_wsgi now released with new WSGIErrorOverride directive for daemon mode.
Status: Fixed
Sign in to add a comment

Hosted by Google Code