title: basic auth does not work in apache 2.4
body: <p>httpd.conf</p>
  
  <pre><code>LoadModule authn_file_module modules/mod_authn_file.so
  LoadModule authn_core_module modules/mod_authn_core.so
  LoadModule authz_host_module modules/mod_authz_host.so
  LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  LoadModule authz_user_module modules/mod_authz_user.so
  LoadModule authz_core_module modules/mod_authz_core.so
  LoadModule access_compat_module modules/mod_access_compat.so
  LoadModule auth_basic_module modules/mod_auth_basic.so
  LoadModule auth_digest_module modules/mod_auth_digest.so
  </code></pre>
  
  <p>httpd-vhosts.conf</p>
  
  <pre><code>&lt;VirtualHost *:8080&gt;
          ServerAdmin webmaster@192.168.1.162
          DocumentRoot "/data/www/sites/default/public"
          ServerName 192.168.1.162
          ErrorLog "/data/www/logs/apache/192.168.1.162-error_log"
          CustomLog "/data/www/logs/apache/192.168.1.162-access_log" combined
      &lt;Directory "/data/www/sites/default/public"&gt;
          Options -Indexes
          AllowOverride All
          Order allow,deny
          Allow from all
          AuthType Basic
          AuthName "Restricted Resource"
          AuthBasicProvider file
          AuthUserFile /data/svn/htpasswd
          Require valid-user
      &lt;/Directory&gt;
      ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/data/www/sites/default/public/$1
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I can get the info to input the user and password,but always can not be virified.I am sure the password is correct and the htpassswd file are not in the document root folder.</p>
  
  <p>How can i resolve this problem?</p>