我試圖讓格里特在後面跟着跑了Apache 2.2.15代理,並運行到重定向循環,當我嘗試連接時重定向循環。我錯過了什麼嗎?連接到格里特
[2013年11月26日07:44:04701] INFO com.google.gerrit.sshd.SshDaemon:29418 [2013年11月26日07:44:04706] INFO組織上*發起者格里特SSHD。 eclipse.jetty.server.Server:jetty-8.1.7.v20120910 /tmp/gerrit_1340818739918966007_app/gerrit_war /} [2013-11-26 07:44:06,211] INFO org.eclipse.jetty.server.AbstractConnector:Started SelectChannelConnector @ 127.0.0.1:8081 [2013年11月26日07:44:06213] INFO com.google.gerrit.pgm.Daemon:Gerrit代碼評論2.8 RC2準備
Apache的配置:
Listen 8083
<VirtualHost *:8083>
ServerName host.domain.com
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Location "/gerrit/login/">
AuthType shibboleth
ShibRequestSetting requireSession 1
Require valid-user
</Location>
RequestHeader set REMOTE_USER %{REMOTE_USER}s
ProxyPass /gerrit/ http://localhost:8081/gerrit/
</VirtualHost>
格里特配置:
[gerrit]
canonicalWebUrl = http://host.domain.com:8083/gerrit/
[auth]
type = HTTP
httpHeader = REMOTE_USER
[httpd]
listenUrl = proxy-http://127.0.0.1:8081/gerrit/