Hi,

This finally works... So ignore that last message.... I first went to "conf" directory,
created an "auth" directory, and I'm putting it in there.

htpasswd -c /var/www/conf/auth/passwd edp

# Here is where I set the permissions......
chown root.nogroup /var/www/conf/auth/passwd
chmod 640 /var/www/conf/auth/passwd

Now, I need to setup the httpd.conf entry,  and this is what
I intend to use...  Any comments?

So,  I would add this...

<Directory "/var/www/cgi-bin/secure">
      AuthType Basic
      AuthName "Password Required"
      AuthUserFile /var/www/conf/auth/passwd
      Require valid-user
</Directory>

To my httpd.conf file, right? I think this in effect just tells apache that anything
I put into the "secure" directory,  is going to ask for a username (edp) and
password I had setup to use via htpasswd.

Is this the recommended way to do this?  Then from root,  I would do...

apachectl restart

Thanx
John

Reply via email to