ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
Order deny,allow
Allow from all
AuthType Basic
AuthName "Gerrit Code Review"
Require valid-user
AuthBasicProvider file
AuthUserFile /etc/apache2/passwords
AllowEncodedSlashes On
ProxyPass /gerrit/ http://127.0.0.1:8081/gerrit/ nocanon
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
下一个文件是我的gerrit.conf文件:
[gerrit]
basePath = git
canonicalWebUrl = http://192.168.1.3/gerrit/
[database]
type = mysql
hostname = localhost
database = reviewdb
username = gerrit2
[index]
type = LUCENE
[auth]
type = HTTP
loginUrl = http://192.168.1.3/gerrit/login/
[sendemail]
smtpServer = localhost
[container]
user = gerrit2
javaHome = /usr/lib/jvm/java-7-openjdk-amd64/jre
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = proxy-http://localhost:8081/gerrit/
[cache]
directory = cache
问题是当我尝试登录gerrit服务器时,出现内部服务器错误。
收到其中一些信息后,我以Anonymous Coward的身份登录,后来尝试注销时收到更多内部服务器错误。
如果有人可以建议我应该在哪里寻找问题,我将不胜感激。
最佳答案
您可以删除“ loginUrl”。仅在使用“特殊”登录处理时使用。收到“匿名胆小鬼”时可以-您只需要在设置中设置您的名字即可。我认为如果您检查(错误)日志:logs / error_log,也会有所帮助。