title: Apache 2.4 "..authentication failure..:Password Mismatch"
body: <p>I am running Apache 2.4 in Windows Server 2008 R2. I am attempting to password protect a subdirectory and successfully did so in Apache 2.0. After upgrading I took Apache's advice and am attempting to put the authentication config in httpd.config. I am allowing the reading of the password file and everything appears to be in order, but when I test it I get the following error:  </p>
  
  <p>[Mon Apr 01 19:58:36.438476 2013] [auth_basic:error] [pid 3984:tid 788] [client xxx.yyy.254.2:49253] AH01617: user master: authentication failure for "/restricted/file.zip": Password Mismatch  </p>
  
  <p>However, I know that I am sending the correct password. See below for my config, any comments are helpful.  </p>
  
  <pre><code>&lt;Directory "C:/www/mydir/restricted"&gt;
      #AllowOverride AuthConfig
      #Order allow,deny
      #Allow from all
      AuthType Basic
      AuthName Restricted
      AuthUserFile "C:/www/mydir/passwords/pass"
      Require valid-user
  &lt;/Directory&gt;  
  &lt;Directory "C:/www/mydir"&gt;
      Require all granted
  &lt;/Directory&gt;  
  &lt;VirtualHost *:80&gt;
      ServerAdmin admin@.com
      DocumentRoot "C:/www/mydir"
      ServerName "fakeurl.com"
      ErrorLog "C:/www/mydir/logs/error.log"
      CustomLog "C:/www/mydir/logs/accesslog/access.log" common
  &lt;/VirtualHost&gt;  
  &lt;VirtualHost *:80&gt;
      ServerAdmin admin@.com
      DocumentRoot "C:/www/mydir"
      ServerName "www.fakeurl.com"
      ErrorLog "C:/www/mydir/logs/error.log"
      CustomLog "C:/www/mydir/logs/accesslog/access.log" common
  &lt;/VirtualHost&gt;
  </code></pre>