Graham Dumpleton
grahamd at dscpl.com.au
Wed Jun 28 01:21:23 EDT 2006
Wouter van Marle wrote .. > Hi all, > > Looking through my stats I see some of my users still get an "500 > internal server error". Is there any easy way to prevent this? > > I've cut down on this already seriously by doing some POST checks (if > the parameter does not exist, reroute to the section's home page instead > of serving an empty page - which causes Apache to serve an "internal > server error"). > > The current errors are usually from so malformed input I get a crash > (I've to look into that, I know), or more frequently from mistypings in > the URL (http://host/python/main.py/pagename). Is it definitely coming from mod_python code? Does it generate any sort of Python stack trace in the Apache error log or any other message? If using mod_python 3.2.8, pretty well all of the places in mod_python which generate a 500 error should log a stack trace or some other informative message as to why the 500 error was generated. Also, when you say crash, do you mean the 500 error, or an actual Apache crash due to a segmentation fault or something? Graham
|