On Thu, Oct 15, 2009 at 2:03 PM, Raoul Snyman <[email protected]>wrote:

>
> Hi folks,
>
> I'm trying to set a custom 404 page for my Pylons app. I'm running my
> app through Apache2 and mod_wsgi (2.0). In my vhost configuration, I
> have the ErrorDocument for 404 set, and I've even edited my
> middleware.py to redirect 404s to my 404 page.
>
> When I run my app via paster, it works a charm. When I run the app on
> our dev server (via Apache2/mod_wsgi), I get an unstyled page that
> says "404 Not Found" at the top, and "The resource could not be
> found." underneath it. As far as I can tell, this is not the Apache
> 404 page.
>
> Anyone run into this before? Any ideas? Need more info?
>

in my experience nginx and mod_wsgi works best and the performance is also
better than apache+mod_wsgi. by the way which OS are you using.

another step is to look into the log files of Apache as to what error it
throws, whether it's not able to find the custom 404 file or it's serving
from it's cache.

hope this will help.

-- 
Regards,
Arun Tomar
blog: http://linuxguy.in
website: http://www.solutionenterprises.co.in

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to