Controlling Apache Error messages?

Rodent of Unusual Size Ken.Coar at Golux.Com
Fri Feb 14 13:16:13 EST 2003


pll at lanminds.com wrote:
> In a message dated: Fri, 14 Feb 2003 11:19:48 EST
> Rodent of Unusual Size said:
> 
>>this is HTTP_UNAUTHORIZED, which is status code 401.
> 
> Hmmm, that's what I thought.  However, I have tried the following:
> 
> 	ErrorDocument 401 /cgi-bin/unauth.cgi
> 
> Which for some reason didn't work.  I'm guessing because the user 
> also needs to be authorized to access this directory :) (Doh!)
> 
> Then I tried this:
> 
> 	ErrorDocument 401 http://168.159.31.24/cgi-bin/unauth.cgi
> 
> and upon restarting apache, I get this error:
> 
> 	Starting web server: apache[Fri Feb 14 11:51:53 2003] [notice]
> 	cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
> 
> Yet, it is clearly stated in a number of places, that the use of an 
> external URL is acceptable.
> 
> Any ideas?

about what?  why absolute-uris aren't permitted for 401?  yes.
why your errordocument 404 relative-uri didn't work?  probably a
scoping issue.
-- 
#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