Hello All,
After many investigation I cannot get gerrit to work!
Get Configuration Error
Check the HTTP server's authentication settings.
gerrit.config
[gerrit]
basePath = /srv/repos/git
canonicalWebUrl =
http://localhost:8081/gerrit/[database]
type = h2
database = db/ReviewDB
[index]
type = LUCENE
[auth]
type = HTTP
[sendemail]
smtpServer = localhost
[container]
user = gerrit
javaHome = /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.7.el7_1.x86_64/jre
[sshd]
listenAddress = *:29418
[httpd]
#listenUrl = proxy-http://*:8080/gerrit/
listenUrl = http://*:8080/gerrit/
#listenUrl = proxy-
http://127.0.0.1:8081/r/[cache]
directory = cache
gerrit.conf
<VirtualHost *:80>
ServerName server
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location /gerrit/>
AuthType Basic
AuthName "Gerrit Code Review"
AuthUserFile /home/gerrit/config/gerrit.htpasswd/
Require valid-user
Order Deny,Allow
Allow from all
</Location>
ErrorLog logs/gerrit_error_log
AllowEncodedSlashes On
#ProxyPass /gerrit/
http://localhost:8081/gerrit/ nocanon
ProxyPass /gerrit
http://127.0.0.1:8080/gerrit nocanon
#ProxyPassReverse /gerrit/
http://localhost:8081/gerrit/</VirtualHost>
What is missing?
Location for Apache should be?
Is there a need to make symbolic links or something?