title: How to match all files in a directory using Apache FilesMatch?
body: <p>I need to restrict access to all files stored in  <code>/sites/default/files/pdf/</code> on my Apache webserver. I have tried following <code>FilesMatch</code> expression, but that does not work. </p>
  
  <pre><code>&lt;FilesMatch "sites/default/files/pdf"&gt;
  AuthName "myauth"
  AuthBasicProvider ldap
  AuthType Basic
  AuthLDAPURL ....
  AuthLDAPBindDN ....
  AuthLDAPBindPassword ...
  Require valid-user
  &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>Even matching for specific filename does not work (<code>&lt;FilesMatch "sites/default/files/pdf/myfile\.pdf"&gt;</code>). Am I missing something?</p>