title: How do you exclude a directory from .htpasswd?
body: <p>Our DEV server uses apache's .htpasswd to protect each site but our CMS requires the file directory to be excluded or multiple file uploads won't work. </p>
  
  <p>After searching, we're trying the following in the virtual host file but it doesn't seem to work:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  
    ServerName website.dev.com
    DocumentRoot /home/website/public_html/
    Alias /robots.txt /home/robots.txt
  
    &lt;Directory /home/website/public_html/ &gt;
      Options -Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      Allow from all
  
      # PASSWORD PROTECT WEBSITE ON DEV SERVER
      # Requires the .htpasswd file created during dev server setup
      # -----------------------------------------------------------------------
      AuthUserFile /home/.htpasswd
      AuthType Basic
      AuthName "This website is in development, enter your credentials to view"
      Require valid-user
    &lt;/Directory&gt;
  
    &lt;Directory /home/website/public_html/files/&gt;
      Allow from all
      Satisfy any
    &lt;/Directory&gt;
  
    LogLevel warn
    CustomLog /var/log/apache2/website.dev.com.log combined
    ErrorLog /var/log/apache2/website.dev.com-error.log
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Can anyone see what we're doing wrong?</p>
  
  <p>Any help or pointers in the right direction would be much appreciated.</p>