On Saturday 31 May 2003 20:56, Brent L. Cox wrote:
> I do have a .htpasswd and .htaccess files do you have any
> examples of them.
> thanks,
 
This works for me.

---- /etc/httpd/conf/httpd.conf -----

<Directory "/var/www/html">
        AllowOverride AuthConfig
        Order deny,allow
        Allow from all
</Directory>

 ---- end of httpd.conf ---

---- /etc/httpd/authorized_users -----
user1:password
user2:password

..... end of authorized_users ---- 

----- /var/www/html/protected_directory/.htaccess -------
AuthName "Presentation"
AuthType Basic
AuthUserFile authorized_users
require valid-user
 
---- end of .htaccess ---

Double check file permissions to make sure they're readable.


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to