Controlling Apache Error messages?

Rodent of Unusual Size Ken.Coar at Golux.Com
Fri Feb 14 11:19:48 EST 2003


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?

this is HTTP_UNAUTHORIZED, which is status code 401.
-- 
#ken	P-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist      http://Apache-Server.Com/

"Millennium hand and shrimp!"




More information about the gnhlug-discuss mailing list