title: Missing 'WWW-Authenticate' header for 401
body: <p>I have a project which is protected by std AuthUserFile-directive in .htaccess.</p>
  
  <p>Everything is quite simple and has already been fine on another server. Here is the content of my <code>.htaccess</code>:</p>
  
  <p>The <code>.htaccess</code>:</p>
  
  <pre><code>AuthName "Adminbereich"
  AuthType Basic
  AuthUserFile /srv/www/passwords/.htpasswd-office
  
  &lt;Files *.php&gt;
  require valid-user
  &lt;/Files&gt;
  </code></pre>
  
  <p>The <code>.htpasswd-office</code> gets accessed. If I call <code>http://user:pass@host/</code> I get in. If I just call <code>http://host/</code> I get this message immediately ...</p>
  
  <pre><code>Authorization Required
  
  This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
  </code></pre>
  
  <p>... without any login-box showing. What could be the cause of this?</p>
  
  <p>This is a example-header from here: <code>http://www.pagetutor.com/keeper/mystash/secretstuff.html</code></p>
  
  <pre><code>HTTP/1.1 401 Authorization Required
  Date: Thu, 01 Nov 2012 21:38:27 GMT
  Server: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
  WWW-Authenticate: Basic realm="My Secret Area"
  Accept-Ranges: bytes
  Content-Length: 343
  Content-Type: text/html
  </code></pre>
  
  <p>And this is my header:</p>
  
  <pre><code>HTTP/1.1 401 Authorization Required
  Date: Thu, 01 Nov 2012 21:36:41 GMT
  Server: Apache/2.2.20 (Ubuntu)
  Vary: Accept-Encoding
  Content-Type: text/html; charset=iso-8859-1
  </code></pre>
  
  <p>The magic <code>WWW-Authenticate: Basic realm="..."</code> is missing and I have no idea why...</p>
  
  <p>I use the standard ubuntu (11.10) apache (2.2.20) without any modifications...</p>