Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How-to: password-protect a file/directory in Apache using htaccess
#3

edit the .htaccess file and add

 

<FilesMatch filename.html>

AuthName "username"

AuthType Basic

AuthUserFile /home/userdir/.htpasswd

require valid-user

</FilesMatch>

Reply


Messages In This Thread
How-to: password-protect a file/directory in Apache using htaccess - by grep420 - 2004-07-30, 09:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)