title: Custom error page in Apache2 for 401
body: <p>Here's the relevant part of the .htaccess file:</p>
  
  <pre><code>AuthUserFile  /var/www/mywebsite/.htpasswd
  AuthGroupFile /dev/null
  AuthName  protected
  AuthType Basic
  Require valid-user
  
  ErrorDocument 400 /var/www/errors/index.html
  ErrorDocument 401 /var/www/errors/index.html
  ErrorDocument 403 /var/www/errors/index.html
  ErrorDocument 404 /var/www/errors/index.html
  ErrorDocument 500 /var/www/errors/index.html
  </code></pre>
  
  <p>Docuement root is set to /var/www/mywebsite/web, it's on of many vhosts.  I can navigate to the index.html page.</p>
  
  <p>All I'm seeing is the generic Apache 401 page, any thoughts.</p>
  
  <p>EDIT: This is the error message in my browser:</p>
  
  <blockquote>
    <p>Authorization Required</p>
    
    <p>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.</p>
    
    <p>Additionally, a 401 Authorization
    Required error was encountered while
    trying to use an ErrorDocument to
    handle the request. Apache/2.2.9
    (Debian) PHP/5.2.6-1+lenny8 with
    Suhosin-Patch Server at www.dirbe.com
    Port 80</p>
  </blockquote>