[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SOLVEDRe: [cobalt-users] .htaccess not working on a raq550 ?
- Subject: SOLVEDRe: [cobalt-users] .htaccess not working on a raq550 ?
- From: "Robbert Hamburg \(HaVa Web- & Procesdesign\)" <user@xxxxxxx>
- Date: Mon Jun 23 12:55:02 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> I have made the following:
>
> .htaccess
>
> AuthType Basic
> AuthName "Please enter your invitation code"
> AuthUserFile /home/sites/www.xxxxxx.com/web/dir/.htpasswd
> AuthPAM_enabled off
>
> <limit GET PUT POST>
> require valid-user
> </limit>
nevermind got i working already
The reason for the above behavior is that the RaQ550 does not allow apache
authentication against the system-wide password files for security reasons.
The authentication through the site-wide local password files is however
supported.
So the work around is to create the local user database using htpasswd
program and then refer it in .htaccess file using AuthUserFile entry.
e.g. Create the user database file at /home/sites/sitename/.htpasswd using
the htpasswd program, then the sample .htaccess file would be:
AuthName "restricted stuff"
AuthType Basic
AuthUserFile /home/sites/sitename/.htpasswd
require valid-user
It is advised not to create the password file within web root for security
reasons. The recommended directory is /home/sites/sitename/
This directory is accessible to site administrator and is beyond the site's
web root.
for the archives
Robbert