title: Use "AuthType Digest" for a given subdirectory whose parent uses "AuthType Basic"?
body: <p>I'm using Apache 2.2 and I have an application (Zend Framework 1) that is protected by an HTTP authentication with:</p>
  
  <pre><code>AuthType Basic
  AuthName "Please login to use this app"
  AuthBasicProvider file
  AuthUserFile ..../.htpasswd
  Require valid-user
  </code></pre>
  
  <p>And it's working just fine.
  Now I need the URL <a href="http://example.com/api" rel="nofollow">http://example.com/api</a> to use <code>AuthType Digest</code> (because the API module we use works with digest-based authentication).</p>
  
  <p>Without the authentication code above the API client connects fine. With it I get "401 Authorization Required" and Apache logs says "client used wrong authentication scheme".</p>
  
  <p>I tried:</p>
  
  <pre><code>&lt;Location /&gt;
      AuthType Basic
      AuthName "Please login to use this app"
      AuthBasicProvider file
      AuthUserFile ..../.htpasswd
      Require valid-user
  &lt;/Location&gt;
  
  &lt;Location /api&gt;
      AuthType Digest
  &lt;/Location&gt;
  </code></pre>
  
  <p>But now I have "Digest: client used wrong authentication scheme" in logs (Note the "Digest: " prefix).</p>
  
  <p>Is it possible to make the two HTTP authentication type work side-by-side (however it's more cascaded in this case)?</p>