title: htaccess doesn't work - always wrong password
body: <p>I am trying to password protect a directory, and have two files in the directory which should password protected it:</p>
  
  <ul>
  <li>.htaccess</li>
  <li>.htpasswd</li>
  </ul>
  
  <p>HTACCESS:</p>
  
  <pre><code>###Contents of .htaccess:
  AuthUserFile /var/www/html/path/to/my/directory/.htpasswd
  AuthName "Protected Files"
  AuthType Basic
  Require user admin
  </code></pre>
  
  <p>HTPASSWD:</p>
  
  <pre><code>###Contents of .htpasswd
  admin:oxRHPuqwKiANY
  </code></pre>
  
  <p>The password is also admin, but no matter what password I try, it is always wrong. It immediately asks for the password again!</p>
  
  <p>What is wrong with this configuration?</p>