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

Re: Web Auth.



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.




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