Newbie dot Org
Code Snippets
.htaccess
Printing Error 500 to Browser
|
Options Includesnoexec AddType text/x-server-parsed-html .shtml ErrorDocument 500 /cgi-bin/tailerr.sh The inclusion of the ErrorDocument 500 will cause the httpd to call a script tailerr.sh when an error 500 occurs. This is good for debugging purposes. The tailerr.sh script looks something like: #!/bin/bash echo "Content-type: text/html" echo "" echo "<html><body>" echo "There was an error processing a script.<p>" echo "<pre>" tail /usr/local/apache/logs/domainname.com-error_log echo "</pre>" echo "</body></html>"
Posted by Claude on 04/01/00 at 11:16:44
|