[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Custom 401 Page inside protected site
- Subject: RE: [cobalt-users] Custom 401 Page inside protected site
- From: "Paul Alcock" <webmgr@xxxxxxxxxxxxxxxxxx>
- Date: Fri Apr 26 08:32:59 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> >
> > Hello all,
> >
> > I have read and read (Sun's KB, Google, users and developer's lists) the
> > multiple ways of doing customer error pages. I have my script
> working for
> > the 400,403,404, and 500 errors. However, I have a little
> problem with the
> > 401 (Authentication Required) error code.
> >
> > I have a site where the password protected url is www.example.com/ (the
> > site's root, this is a must and cannot be changed). I have all of the
> > necessary scripts and pages for my custom error pages inside
> > www.example.com/error/. The .htaccess file has a line for the 401 error:
> > "ErrorDocument 401 /error/error.php?401"
> >
> > BUT because it is protected as well it will not display the appropriate
> > page, instead the browser receives the following error:
> > "Additionally, a 401
> > Authorization Required error was encountered while trying to
> use an Error
> > Document to handle the request"
>
> Can't you put the error stuff in a users web dir???
>
Octavio,
Do you only have that one site on the server????
If so, you could modify the default 'Authorization Required' page.
Otherwise I cannot see how you can avoid directing them to a 'users' site.
eg. direct them to /~newaccounts/index.html
Paul.
Get an account at http://www.ourfaqsite.com
and keep your FAQs up to date.