Return to Snippet

Revision: 29959
at August 5, 2010 14:45 by beneberle


Initial Code
AuthUserFile /full/path/to/.passwdfile
AuthGroupFile /dev/null
AuthName "Realm Name"
AuthType Basic
require valid-user

Initial URL

                                

Initial Description
Put this in an .htaccess file to protect the directory it is in and anything below it. This requires that a file named .passwdfile exists in the directory \\\"/full/path/to/\\\" and contains at least one username/password combination.\\r\\n\\r\\nUse this snippet to generate the .passwdfile\\r\\n\\r\\n[Use this snippet to generate the .passwdfile](http://snipplr.com/view/38523/htpasswd-basic-authentication--create-userpass-with-encrypted-password/ \\\"htpasswd\\\")

Initial Title
.htaccess Basic Authentication

Initial Tags
htaccess

Initial Language
Apache