title: apache with different authentication domains for a location and a sub-location
body: <p>I want to configure apache2 two different locations with authentication domain, but one location is a base path of the other.
  So unfortunately only the base location configuration is used.</p>
  <pre><code> &lt;Location &quot;/xwiki/&quot;&gt;
      Options FollowSymLinks
      AllowOverride None
      AuthType Digest
      AuthName &quot;XWikiDomain&quot;
      AuthDigestDomain &quot;/xwiki/&quot;
      AuthDigestProvider file
      AuthUserFile  /etc/apache2/passwd/passwd_digest_auth
      Require user user1
  
      BrowserMatch &quot;MSIE&quot; AuthDigestEnableQueryStringHack=On
      &lt;LimitExcept OPTIONS&gt;
         Require valid-user
      &lt;/LimitExcept&gt;
    &lt;/Location&gt;
    &lt;Location &quot;/xwiki/wiki/subwiki/&quot;&gt;
      Options FollowSymLinks
      AllowOverride None
      AuthType Digest
      AuthName &quot;KWFDomain&quot;
      AuthDigestDomain &quot;/xwiki/wiki/subwiki&quot;
      AuthDigestProvider file
      AuthUserFile  /etc/apache2/passwd/passwd_digest_auth
      Require user user2
      BrowserMatch &quot;MSIE&quot; AuthDigestEnableQueryStringHack=On
      &lt;LimitExcept OPTIONS&gt;
         Require valid-user
      &lt;/LimitExcept&gt;
    &lt;/Location&gt;
  </code></pre>
  <p>How can the configuration be done to get it working?
  Regards Rainer</p>