passing on 404 errors?
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=rightWSGI Server/div in the footer. I guess that's what mod_wsgi do. How can I tell it to leave the 404 error alone? -- Max.Ischenko http://www.developers.org.ua The #1 Ukrainian Software Developers' community News, Companies, Jobs, Events, Talks and more --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: passing on 404 errors?
On Jan 4, 9:06 pm, Max Ischenko ische...@gmail.com 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=rightWSGI 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 pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: passing on 404 errors?
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. Thanks for the explanation! I guess I could live with two 404 pages then, not that a big deal. -- Max.Ischenko http://www.developers.org.ua The #1 Ukrainian Software Developers' community News, Companies, Jobs, Events, Talks and more --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: passing on 404 errors?
On Jan 4, 9:27 pm, Max Ischenko ische...@gmail.com wrote: 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. Thanks for the explanation! I guess I could live with two 404 pages then, not that a big deal. Except I perhaps part misread part of your problem. Whatever is setting: hr noshade div align=rightWSGI Server/div it isn't mod_wsgi as it will just pass on whatever responses are supplied by the WSGI application. Thus, if you want to get rid of that, search out where in Pylons or your application it is being generated and override error response page generated by Pylons through whatever mechanism Pylons has for that. BTW, if you want one consistent 404 page used by both Apache and the WSGI application, then set Apache directive: ErrorDocument 404 /some/url/for/404/page Where that URL references the URL within Pylons application for the 404 page. In other words, have WSGI application generate the 404 for the rest of Apache. Graham -- Max.Ischenko http://www.developers.org.ua The #1 Ukrainian Software Developers' community News, Companies, Jobs, Events, Talks and more --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---