title: Apache configuration: Regex to disable access to files/directories beginning with a dot
body: <p>I want to disable access to any file OR directory, whose name begins with a DOT. I came up with the following, but it disables access to files/directories beginning with DOT only if they are directly in the Document root.</p>
  
  <pre><code>&lt;Files ~ "^\.|\/\."&gt;
      Order allow,deny
      Deny from all
  &lt;/Files&gt;
  </code></pre>
  
  <p>With this, </p>
  
  <pre><code>http://my_server.com/.svn/entries   --&gt; Permission denied
  http://my_server.com/abcd/.svn/entries  --&gt; Accessible, should be disabled
  </code></pre>
  
  <p>Whats the proper regex to achieve this?</p>