title: htaccess password protect files with different users
body: <p>I have a files server and I use mod_autoindex to server the files. I have a username and password in htaccess so only certain people can access the files. I have added another user to htpasswd but I would only like that user to access some of the files/folders.</p>
  
  <p>Here is my htaccess file now:</p>
  
  <pre><code>AuthType Basic
  AuthName "restricted"
  AuthUserFile E:\\path\\to\\.htpasswd
  
  &lt;Files "filesForAnyUser\\*"&gt;
    Require valid-user
  &lt;/Files&gt;
  
  &lt;Files "*"&gt;
  Require user admin
  &lt;/Files&gt;
  </code></pre>
  
  <p>I'm sure I am doing something wrong but I can't find any good documentation on this.</p>