[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Setting up realms on a RAQ4



At 05:10 PM 12/10/01 -0400, you wrote:
Greetings All,

I searched the Cobalt website and the list archives and haven't found instructions that a Linux newbie like myself could follow. I'm trying to set up some password protected areas in some of my virtual hosts to have pages with limited access.

Does anyone have a clear and concise set of instructions on what I would need to do to set this up?

Thanks,
  Harry

Password protecting a directory with htaccess

1. Place this in the folder you need to protect. Make sure you have the path to the password file correct, change AuthName to match what you want to be displayed. Name this file .htacces

#this page is accessible to members and registered guests

AuthUserFile /home/path/to/.htpasswd
AuthName "Members Directory"
AuthType Basic
require valid-user


2. Create an .htpasswd members file by:
        - going to the directory that will contain this file
          (non public directory is best).
        - type htpasswd -c .htpasswd name
        - hit enter
        - enter password
        - re-enter password

To add new member:
        - type htpasswd .htpasswd name
        - hit enter
        - enter password
        - re-enter password





------------------------------------
William J.A. Brillinger
Precision Design Co./Promotex Online

E-Mail:   billy@xxxxxxxxxx
Web site: www.pdcweb.net