私たちはGerritをインストールして、サーバー上のリポジトリを管理しています。 これまでのところ、すべて正常に動作し、sshを使用してクローンを作成できます。httpのapache2の後ろにあるGerritクローン
Gerritはバージョン2.14.2のApache 2.4.18です。
/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://[email protected]/gerrit
[receive]
enableSignedPush = false
[sendemail]
smtpServer = mail.something.com
from = Code Review <[email protected]>
[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>
私が言ったように、sshを使ったクローンはうまくいきます。しかし、httpを使用してクローンを作成しようとすると、認証エラーが発生します。 mods-enabledの別の設定ファイルでさまざまな設定を試してみましたが、利用可能なサイトもありました。
何が間違っている可能性がありますか?
すでにわかっているように、repository.something.com/gerritを使用してrepository.someting.comにアクセスし、Gerritにアクセスしています。
これらのすべてのApacheの設定のものは私にとって全く新しいもの-.-だから、私は、私はより多くの情報のためにデバッグするApacheのログレベルを変更^^