Note that there are some explanatory texts on larger screens.

plurals
  1. POset up gerrit with http authentication
    primarykey
    data
    text
    <p>I am trying to configure gerrit with http baisc authentication , my httpd config is </p> <pre><code>&lt;VirtualHost *:8081&gt; ServerName localhost 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 /usr/local/apache/passwd/passwords Require valid-user &lt;/Location&gt; ProxyPass / http://localhost:8081/ &lt;/VirtualHost&gt; </code></pre> <p>and my gerrit.config is</p> <pre><code>[gerrit] basePath = git canonicalWebUrl = http://localhost:8081/ [database] type = mysql hostname = localhost database = reviewdb username = gerrit [auth] type = HTTP [sendemail] smtpServer = localhost smtpUser = gerrit [container] user = gerrit javaHome = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre [sshd] listenAddress = *:29418 [httpd] listenUrl = proxy-http://*:8081/ [cache] directory = cache </code></pre> <p>i am not sure where am i going wrong but the accessing <a href="http://x.x.x.x:8081">http://x.x.x.x:8081</a> says</p> <pre><code>The HTTP server did not provide the username in the Authorization header when it forwarded the request to Gerrit Code Review. If the HTTP server is Apache HTTPd, check the proxy configuration includes an authorization directive with the proper location, ensuring it ends with '/': </code></pre> <p>my gerrit runs on the inbuild jetty countainer and my OS is centos 6.4</p> <p>where am i going wrong.?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload