Hello,
I am using Apache 2.0.54 on FreeBSD 5.3.
I require username/password authentication for almost all content.
I have been instructed to set up custom error messages on our servers so
that when a user authentication fails, a more elegent page will appear
with text indicating that the login failed, name of server, logos of
client, and an "ok" button that returns to the home page to try again.
I have tried to modify the:
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
directive in httpd.conf to point to my custom html page, but with little
success.
This works:
ErrorDocument 401 "Login failed, please try again."
or anything with text in there works. But then that does not meet my
instructions to present a more elegent error page.
I've tried:
ErrorDocument 401 /error/mycustom401error.html
But Apache can't serve an error page from a location that has been
authenticated to (chicken-and-egg problem?)
And if I try this:
ErrorDocument 401 http://alternate_url_that_doesnt_require_auth
Apache yells at me and says that I can't do redirects for 401 errors !!??
Please help -- any ideas?
Thanks,
DW
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]