PDA

View Full Version : How to trap an apache error?


vootmon
06-08-2006, 08:50 AM
Anyone know how to trap the error caused by clients canceling or selecting a bad certificate when SSLVerifyClient is set to require? It shows a 130 error code in the error log, not sure what to do with that. Using apache version 2.0.49
Thanks in advance!!

_Aerospace_Eng_
06-17-2006, 02:37 AM
Hmm I wonder if you can make an error page for that. Look into making custom error pages. I know you can make them for 404, and 403 errors so you should be able to make them for 103 as well.

mgolvach
10-16-2007, 12:03 AM
Hey There,

You can use the "ErrorDocument" keyword in your httpd.conf for that. One of 3 ways, I believe - internal/external redirects and plaint text on returns. If you use this feature, with a little creativity, you can make it easy to spot the error in your logs if you, for instance, redirect to a page that returns a 200 and has a unique name.

The syntax is: (First is plain text, next two are internal redirects, last is external)
ErrorDocument 130 "You got an error 130"
ErrorDocument 130 /public_html/errors/error_130.html
ErrorDocument 130 /cgi-bin/someErrorHandlingProgram.pl
ErrorDocument 130 http://www.errrors.com/error130.html

Hope this helps you out :)

, Mike