Thanks! This is just the thing I missed. Lebbeous
On Sun, Feb 5, 2012 at 6:29 PM, Graham Dumpleton <[email protected]> wrote: > If you are using mod_wsgi daemon mode, you can set: > > WSGIErrorOverride On > > Graham > > On 4 February 2012 16:16, Lebbeous Fogle-Weekley <[email protected]> wrote: >> Imagine a mod_wsgi application even more minimal than the Hello World >> example: >> >> def application(environ, start_response): >> start_response('404 Not Found', []) >> return [] >> >> Of course the resulting response status line has the 404 as expected, >> and the response body is empty. >> >> Is there any way that the WSGI application can define an arbitrary, >> valid response code in the first argument to start_response(), and >> then allow Apache to issue the body of the error response in the >> "traditional" way? E.g., so that Apache sends its usual "File not >> found" document in the response body for a 404 status? >> >> I dimly gather that the reason this doesn't happen is that WSGI spec >> proscribes it, but I would appreciate either an explanation of why >> this isn't done, or if it is in fact doable, what I am missing. >> >> Thank you! >> >> Lebbeous >> >> -- >> You received this message because you are subscribed to the Google Groups >> "modwsgi" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/modwsgi?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
