title: Gerrit installation on CentOS doesn't work
body: <p>I have installed gerrit on my centos server, but I have a problem with the authentication. I would like to give authentication privileges for the centos users in a given group. Basically, every user in the gerrit group should have the possibility to log in with its password.</p>
  
  <p>But, when I access the gerrit link, there is a redirect to gerrit:8081/login when I get the following message:</p>
  
  <blockquote>
    <p>The HTTP server did not provide the username in the Authorization
    header when it forwarded the request to Gerrit Code Review.</p>
    
    <p>If the HTTP server is Apache HTTPd, check the proxy configuration
    includes an authorization directive with the proper location, ensuring
    it ends with '/':</p>
  </blockquote>
  
  <p>Do you have any hints why this doesn't work? </p>
  
  <p>The VirtualHost part of the /etc/httpd/conf/httpd.conf file looks something like this:</p>
  
  <pre><code>&lt;VirtualHost gerrit:8081&gt;
      ServerName gerrit
  
      ProxyRequests Off
      ProxyVia Off
      ProxyPreserveHost On
  
      &lt;Proxy *&gt;
            Order deny,allow
            Allow from all
      &lt;/Proxy&gt;
  
      &lt;Location "/login/"&gt;
        AuthType Basic
        AuthName "Gerrit Code Review"
      AuthBasicProvider file
        AuthUserFile /etc/passwd
        Require valid-user
      &lt;/Location&gt;
  
  
      AllowEncodedSlashes On
         ProxyPass /r http://localhost:8081/r nocanon
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And the gerrit.config file:</p>
  
  <pre><code>[gerrit]
          basePath = /repos
          canonicalWebUrl = http://freshattitude.eu:8081/
  [database]
          type = mysql
          hostname = localhost
          database = gerrit
          username = gerrit
  [auth]
          type = HTTP
          emailFormat = {0}@example.com
  [sendemail]
          smtpServer = localhost
          smtpUser = root
  [container]
          user = gerrit
          javaHome = /usr/java/jdk1.7.0_25/jre
  [sshd]
          listenAddress = *:29418
  [httpd]
          listenUrl = http://*:8081/
  [cache]
          directory = cache
  </code></pre>