title: 500 Error with .htaccess password protection
body: <p>I am running latest ubuntu with apache.</p>
  
  <p>I have very simple html directory I want to protect using <code>.htaccess</code>.</p>
  
  <p>I am trying to do it with:</p>
  
  <pre><code>AuthName "Restricted Area"
  AuthType Basic
  AuthUserFile /var/www/dev/docs/.htpasswd
  Require valid-user
  </code></pre>
  
  <p>On my <code>.htpasswd</code> file I have:</p>
  
  <pre><code>user:pass
  </code></pre>
  
  <p>I get internal server error with this. I've been digging hard but not sure why this is happening.</p>
  
  <p>If I add a this:</p>
  
  <pre><code>&lt;Directory "/var/www/dev/docs"&gt;
  AuthName "Restricted Area"
  AuthType Basic
  AuthUserFile /var/www/dev/docs/.htpasswd
  Require valid-user
  &lt;/Directory&gt;
  </code></pre>
  
  <p>I can't login no matter what I do... </p>
  
  <p>Thanks,</p>