|
Home > Archive > Apache Server configuration support > November 2006 > Need info, about .htaccess and ErrorDocument
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Need info, about .htaccess and ErrorDocument
|
|
| possibleas@gmail.com 2006-11-23, 7:19 pm |
| Quick question,
I have a .htaccess file, with the following designations:
ErrorDocument 302 http://www...
ErrorDocument 400 http://www...
ErrorDocument 401 http://www...
ErrorDocument 403 http://www...
ErrorDocument 404 http://www...
ErrorDocument 500 http://www...
ErrorDocument 501 http://www...
I am attempting to replace the stock error for "Authorization Required"
(i.e. 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.)
SO, it seems in spite of the .htaccess I have above, this particular
error is not effected. I thought 401 was for authorization required.
Does anyone know how to change it, and plus am I missing any other
kinds of modifiable screens? I seem to recall a different or special
way you create unique screens for the the 401 that involved some other
steps, but cannot remember or find a solution 
Thank you and CHEERS! , %A%
| |
| petersprc 2006-11-25, 1:33 am |
| ErrorDocument 401 /errors/401.html
401 error document must refer to a local document, not a remote URL
according to:
http://httpd.apache.org/docs/1.3/mo...l#errordocument
That should cover most of the error codes. See also:
http://www.indiana.edu/~wmhome/tool...rrorcodes.shtml
possibleas@gmail.com wrote:
> Quick question,
>
> I have a .htaccess file, with the following designations:
>
>
> ErrorDocument 302 http://www...
> ErrorDocument 400 http://www...
> ErrorDocument 401 http://www...
> ErrorDocument 403 http://www...
> ErrorDocument 404 http://www...
> ErrorDocument 500 http://www...
> ErrorDocument 501 http://www...
>
>
> I am attempting to replace the stock error for "Authorization Required"
> (i.e. 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.)
>
>
>
> SO, it seems in spite of the .htaccess I have above, this particular
> error is not effected. I thought 401 was for authorization required.
> Does anyone know how to change it, and plus am I missing any other
> kinds of modifiable screens? I seem to recall a different or special
> way you create unique screens for the the 401 that involved some other
> steps, but cannot remember or find a solution 
>
> Thank you and CHEERS! , %A%
|
|
|
|
|