[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Personalized 404 on one site on my raq4i
- Subject: Re: [cobalt-users] Personalized 404 on one site on my raq4i
- From: Paul Warner <pwarner@xxxxxxxxxxxxxxxxxx>
- Date: Sat Aug 17 10:43:00 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> I got some site hosted on a raq4i that have restricted access to some
> folders using .htaccess
> I was created some "login Form" that check the user and the pass in tthe
> .htaccess and it works so good.
> Its very manageable.
> But, when an not registered user try to log in or fail in their username
or
> password, the system shows the .htaccess login popup and then, if their
> fails again, shows the default "401 - Authorization Required" page.
> How can I set to show thew login form or some personalizaed error page
when
> the users autentication fails?
>
Do it via .htaccess file placed in his /web dir.
ErrorDocument 400 pathandfilename
ErrorDocument 401 pathandfilename
ErrorDocument 404 pathandfilename
If you get internal server errors (500) after placing the .htaccess in the
/web dir - check your AllowOverride settings in
access.conf and make sure they include FileInfo.