This is a cheap and effective way to password protect a directory: 1. Edit/create the AuthUserFile /home/someuser/etc/apache/.htpasswd AuthName "Restricted Reports" AuthType Basic
2. Use example.com:[]% htpasswd -h Usage: htpasswd [-c] passwordfile username The example.com:[]% htpasswd -c .htpasswd someuser Adding password for someuser. New password: Re-type new password: example.com:[]% For security its best keep your password file outside of docroot. |
|||
