Create a Basic Password Protected web directory

.htaccess

 

AuthUserFille /path/to/file.htpasswd
AuthGroupFile /dev/null
AuthName “Secret Section”
AuthType Basic

require valid-user

Then create the password file:

/etc/httpd/bin/htpasswd -bcm /path/to/file.htpasswd dave mypass

 

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree