On Jan 4, 9:06 pm, "Max Ischenko" <[email protected]> wrote:
> Hello,
>
> Merry holidays everyone!
>
> I want to disable 404 error handling by wsgi/pylons so that apache handler
> would run.
> I'm using mod_wsgi behind apache and now I get "Not Found" page with
>
> <hr noshade>
> <div align="right">WSGI Server</div>
>
> in the footer.
>
> I guess that's what mod_wsgi do. How can I tell it to leave the 404 error
> alone?
You can't do it with Apache/mod_wsgi, at least not right now.
What is required is an equivalent to ProxyErrorOverride as would be
used if using mod_proxy and Paste HTTP server behind Apache.
In other words, you would use optional configuration to say that an
error response from the WSGI application should effectively be
ignored, except for the status code, and that instead Apache should
yield the response content for that error status.
Implementing this for mod_wsgi daemon mode wouldn't be that hard as
you can just read and discard the data read from daemon process and
not pass it back. Implementing it for embedded mode is much harder
though as there is direct writes to the Apache filter chain and
various other issues.
Anyway, the specific mod_wsgi issue for this feature is:
http://code.google.com/p/modwsgi/issues/detail?id=57
Although I created an issue for it, no one has actually ever asked for
this feature so it has been given quite low priority.
So, if you really need this ability in a hurry, run Paste server
behind Apache with mod_proxy and use ProxyErrorOverride directive.
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---