|more useful options|
mod_perl: how to display the error message within the ErrorDocumentby projekt21 (Friar)
|on Sep 30, 2002 at 13:04 UTC||Need Help??|
projekt21 has asked for the wisdom of the Perl Monks concerning the following question:
I want to handle ErrorDocuments with a mod_perl module Apache::MyError in a way that the actual error message (server error 500, as written to the logs) is displayed within the result HTML page.
I know that this is evil, just treat it as an academic approach. (What I want to do in real life is mail the message to the webmaster and display a backtrace id to the user referring to that error)
What I have so far is my httpd.conf,
a script that won't compile under /usr/local/apache/cgi-bin/die.pl and the following:
The log says:
$p->notes("error-notes") contains "premature end of ..." but not the "syntax error ..." which is the one I want to have.
Can someone guide me to a solution (I know one from mod_ruby using the method error_message)? Am I missing something?
alex pleiner <email@example.com>