title: Apache2.4 Internal Server Error DirectoryMatch
body: <p>I'm trying to secure the .git and svn directories from anyone being able to access them because they contain sensitive meta information.</p>
  
  <p>I've tried using the following rule but I'm receiving an internal server error and I'm not sure why:</p>
  
  <pre><code>&lt;Directorymatch "^/(.*/)*\.(git|svn)/"&gt;
      Require all denied
  &lt;/Directorymatch&gt;
  </code></pre>
  
  <p>Any ideas?</p>