title: Apache: One setting for multiple directories
body: <p>I'd like to protect multiple directories with mod_digest with one settings.</p>
  
  <p>Currently I have this <strong>/etc/apache2/conf.a/mod-digest_realm-protected.conf</strong></p>
  
  <pre><code>AuthType Digest
  AuthName "protected"
  AuthDigestDomain /adminer/ /school-project/
  AuthDigestNonceLifetime 300
  
  AuthDigestProvider file
  AuthUserFile /etc/apache2/.digest
  Require valid-user
  </code></pre>
  
  <p>and this in <strong>/etc/apache/sites-available/default</strong></p>
  
  <pre><code>&lt;Directory /var/www/adminer/&gt;
       Include /etc/apache2/conf.a/mod-digest_realm-protected.conf
  &lt;/Directory&gt;
  
  &lt;Directory /var/www/school-project/&gt;
       Include /etc/apache2/conf.a/mod-digest_realm-protected.conf
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Is there a way to have this setting in a single config file? I tried something like this </p>
  
  <pre><code>&lt;Directory /var/www/(adminer/school-project)/&gt;
     ... auth_digest settings
  &lt;/Directory&gt;
  </code></pre>
  
  <p>but it doesn't work.</p>