ErrorDocument 500 /errors/500 SetHandler perl-script PerlHandler Apache::MyError Options +ExecCGI PerlSendHeader On #### package Apache::Error; use strict; use Apache::Constants qw(:common); sub handler { my $r = Apache->request; my $p = $r->prev; $r->status(OK); $r->content_type("text/html"); $r->send_http_header; $r->print("
\n");

  $r->print($r->path_info, "\n");
  $r->print($p->notes("error-notes"), "\n");

  $r->print("
\n"); return OK; } 1; ##
## syntax error at /usr/local/apache/cgi-bin/die.pl line 6, near "if {" Missing right curly or square bracket at /usr/local/apache/cgi-bin/die.pl line 8, at end of line Execution of /usr/local/apache/cgi-bin/die.pl aborted due to compilation errors. [Mon Sep 30 13:42:51 2002] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: /usr/local/apache/cgi-bin/die.pl