[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Password Protected Directory
- Subject: Re: [cobalt-users] Password Protected Directory
- From: José Luis Chafardet Grimaldi <joseluis@xxxxxxxxxxxxxxxx>
- Date: Sat Feb 15 00:49:01 2003
- Organization: DGTal Studios
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> How I can Protect a folder with a password, on a web site on cobalt RAQ4?
>
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>
>
With .htaccess
Create a file called .htaccess
in it add the next lines
AuthUserFile /home/sites/site1/web/directory/.htpasswd
AuthName "Restricted access"
AuthType Basic
<Limit GET>
require username
</Limit>
note that require username is the user that must be entered in the text box
that will apear on the screen when some one try to open that directory
Then on the shell in the dir where .htaccess is located type:
htpasswd -c AuthUserFile /home/sites/site1/web/directory/.htpasswd username
the -c flag will ask you for a password, 2 times, the first for the password
and the second for confirmation
sorry my english, hope you understanded my explaination
regards,
José Luis Chafardet G.