On Tue 28 Mar 2000 at 22:19:11, David Perkins muttered:
> Anyone know off the top of their head how I can get a folder on my site to
> prompt for a username and password? I just just upgraded to RH 6.2, with an
> apache web server, and am really interested in getting this working!  Apache
> is working like a champ (of course), but I wanted a little screening
> ability!

You need to use the following directives:

AuthType Basic
AuthUserFile /path/to/passwd/file
AuthName "Some prompt string"
require valid-user

The safest place to put these is in a <Directory> entry in your main
httpd.conf file, but you can also put them in a .htaccess file in the
directory.  To create the password file, use the 'htpasswd' command.

-- 
Soren Harward <[EMAIL PROTECTED]> - http://soren.cinternet.net/
    "Never ascribe to malice that which can be adequately 
    explained by stupidity." -- Richard Feynmann

PGP signature

Reply via email to