title: Apache: Block all directories except for listed ones
body: <p>I want to block people from accessing every directory except for <code>/sandbox</code>, <code>/WebDev</code> and <code>/Projects</code></p>
  
  <p>I tried this:</p>
  
  <pre>&lt;Directory ^/(?&lt;!sandbox|Projects|WebDev)+(/.*)&gt;
      Order Deny,Allow
      Deny from all
  &lt;/Directory&gt;</pre>
  
  <p>but it gave a 500 error.</p>