we have Gerrit installed to manage our repositories on the server. So far, everything works well, we can clone using ssh.
Gerrit is the version 2.14.2 apache 2.4.18.
That is our configuration files (censored when needed):
/media/data/gerrit/etc/gerrit.config
[gerrit]
basePath = git
serverId = ed5a7ef7-289e-4590-9292-cbdede1b0dc9
canonicalWebUrl = http://repository.something.com/gerrit
[database]
type = h2
database = /media/data/gerrit/db/ReviewDB
[index]
type = LUCENE
[auth]
type = HTTP
logoutUrl = http://logout@repository.something.com/gerrit
[receive]
enableSignedPush = false
[sendemail]
smtpServer = mail.something.com
from = Code Review <review@gerrit.com>
[container]
javaHome = /usr/lib/jvm/java-8-openjdk-amd64/jre
user = administrator
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = proxy-http://127.0.0.1:8081/gerrit
[cache]
directory = cache
[plugins]
allowRemoteAdmin = true
[download]
command = checkout
command = cherry_pick
command = pull
scheme = ssh
scheme = http
[commitmessage]
maxSubjectLength = 80
maxLineLength = 100
longLinesThreshold = 10
rejectTooLong = false
[plugin "emoticons"]
showEmoticons = true
[reviewers]
enableREST = true
enableUI = true
ignoreDrafts = true
autoAddReviewers = false
maxReviewers = 1
enableLoadBalancing = false
plusTwoRequired = true
plusTwoAge = 8
plusTwoLimit = 10
[gitweb]
type = custom
linkname = log
url = http://repository.something.com/cgit
project = /${project}.git
branch = /${project}.git/log
revision = /${project}.git/commit/?id=${commit}
filehistory = /${project}.git/log
[lfs]
plugin = lfs
/etc/apache2/mods-enable/gerrit.conf
ProxyPassMatch /([[:alnum:]-]+)\.git(.*) http://localhost:8081/gerrit/a/$1.git$2
ProxyPass /gerrit http://localhost:8081/gerrit nocanon
ProxyPassReverse /gerrit http://localhost:8081/gerrit nocanon
ProxyRequests Off
<Proxy http://localhost:8081/gerrit>
Order deny,allow
Allow from all
</Proxy>
<Location /gerrit>
AuthType Digest
AuthName "gerrit"
AuthUserFile /etc/apache2/.htdigest
Require valid-user
</Location>
Clone using ssh, like I said, works well. But when try to clone using http, we get an authentication error. I tried a lot with different settings in a separate config file in the mods-enabled, also in the sites available.
Any idea what could be wrong?
As already seen, we have a landing page on repository.someting.com and access Gerrit using repository.something.com/gerrit.
All these apache configuration stuff is completely new for me -.- So I have no Idea what I do actually ^^