title: Override .htaccess filesmatch password protection in subdirectory
body: <p>My goal is similar to the question asked here:</p>
  
  <p><a href="https://stackoverflow.com/questions/1431378/how-to-remove-htaccess-password-protection-from-a-subdirectory">How to remove .htaccess password protection from a subdirectory</a></p>
  
  <p>a <code>.htaccess</code> file protects all <code>index.html</code> files in subdirectories. I want to exclude a particular subdirectory from this rule. </p>
  
  <p>However, even though I created the <code>.htaccess</code> file in said subdirectiory with the following content:</p>
  
  <pre><code>Require all granted
  </code></pre>
  
  <p>I am still requested for authentication from a <code>.htaccess</code> file at the higher directory:</p>
  
  <pre><code>DirectoryIndex index.html
  
  &lt;FilesMatch "index.html"&gt;
  AuthUserFile /etc/users
  AuthName "Protected"
  AuthGroupFile /dev/null
  AuthType Basic
  Require valid-user
  &lt;/FilesMatch&gt; 
  </code></pre>
  
  <p>How can I override this FilesMatch block in a sub directory so the login is not requested? In my apache configuration file:</p>
  
  <pre><code>&lt;Directory /&gt;
          Options FollowSymLinks
          AllowOverride All
          Require all denied
  &lt;/Directory&gt;
  
  &lt;Directory /usr/share&gt;
          AllowOverride All
          Require all granted
  &lt;/Directory&gt;
  
  &lt;Directory /var/www/&gt;
          Options Indexes FollowSymLinks
          AllowOverride All
          Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>I do have <code>AllowOverride</code> set properly. What am I doing wrong?</p>