[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: Bruce Timberlake <Bruce.Timberlake@xxxxxxx>
- Date: Thu Apr 25 16:27:01 2002
- Organization: Sun Microsystems, Inc.
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Octavio Heredia wrote:
>
> Paul,
>
> <snip>
> > 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"
>
> Can't you put the error stuff in a users web dir???
> </snip>
>
> I would say no since I would not want the user to be redirected to a user's
> site (or to show that much in the address bar) after they failed
> authentication. The page they get would be one that describes the procedure
> of how to obtain an account.
>
> I appreciate your help, do you have any other ideas or how I could keep the
> "user's" site url to appear on the address bar? Thank you very much.
Per the Apache docs, a 401 redirect has to go to a local page (even has
that in bold on their site). So I don't think you can have a "central"
401 page for all domains on your server...
--
Bruce Timberlake
Sun Cobalt Technology Engineer
Sun Microsystems, Inc.