Controlling Apache Error messages?

Mark Komarinski mkomarinski at wayga.org
Fri Feb 14 11:21:57 EST 2003


On Fri, Feb 14, 2003 at 11:06:34AM -0500, pll at lanminds.com wrote:
> 
> Hi all,
> 
> I've got an SSL protected/LDAP authenticating web server.  However, 
> when a user can't get into it, I want to return more than just the 
> standard Apache error response, which simply states:
> 
> 	Authorization Required
> 
> 	This server could not verify that you are authorized to access the
> 	document requested. Either you supplied the wrong credentials (e.g.,
> 	bad password), or your browser doesn't understand how to supply the
> 	credentials required.
> 
> Unfortunately, I can't seem to figure out what the error code for 
> this page is, and the logs don't say any more than just [error].
> (well, actually, there is an LDAP bind error, but still no error code).
> 
> In order to use ErrorDocument handlers, it seems you need to know the 
> code.  Anyone done this before, or can someone point me to docs on 
> how to handle this?

Try:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Unauthorized is a 401 or 403.  I'm not sure which.

-Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20030214/f4125694/attachment.bin


More information about the gnhlug-discuss mailing list