edit the .htaccess file and add
<FilesMatch filename.html>
AuthName "username"
AuthType Basic
AuthUserFile /home/userdir/.htpasswd
require valid-user
</FilesMatch>
How-to: password-protect a file/directory in Apache using htaccess
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
How-to: password-protect a file/directory in Apache using htaccess - by anyweb - 2004-05-11, 12:49 PM
How-to: password-protect a file/directory in Apache using htaccess - by seeno - 2004-07-07, 06:42 AM
How-to: password-protect a file/directory in Apache using htaccess - by grep420 - 2004-07-30, 09:59 PM
How-to: password-protect a file/directory in Apache using htaccess - by anyweb - 2004-07-31, 10:57 AM
How-to: password-protect a file/directory in Apache using htaccess - by grep420 - 2004-11-04, 08:37 PM
How-to: password-protect a file/directory in Apache using htaccess - by dallas - 2004-11-27, 01:15 AM
How-to: password-protect a file/directory in Apache using htaccess - by xDamox - 2005-01-01, 01:49 PM
How-to: password-protect a file/directory in Apache using htaccess - by qstraza - 2006-05-02, 06:00 PM
|