Re: Authorization required response
"Alvaro G. Vicario" <kAlvaroNOSPAMTHANKS@terra.es> wrote in message news:<12wpq06pa5e81.1qone9ymh30au$.dlg@40tude.net> ...
> *** Walter Milner escribió/wrote (5 Jun 2004 00:49:33 -0700):
> > When Apache denies access and sends a page saying 'Authorization
> > required' - is it possible to change what that page is? How? ( OK
> > smite me with the mighty sword Cluebringer ;-) )
>
> Check the ErrorDocument directive. Auth error is a 401 code.
>
> --
Hi Alvaro (I really like the country north of Burgos)
Its OK if I use the simple text form
ErrorDocument 401 "Access denied
but if I refer to a web page like
ErrorDocument 401 /no.htm
I get the standard response plus
'Additionally, a 401 Authorization Required error was encountered
while trying to use an ErrorDocument to handle the request.'
Is this because this is in htdocs and I've denied access without a
password? So do I have use .htaccess to control access per directory,
and put the errordoc in a directory with public access?
|