2013-11-27 36 views
1

我試圖讓格里特在後面跟着跑了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/ 

回答

0

有兩件事情我在你的安裝注意

  1. 您嘗試對gerrit/login/Location。由於Gerrit將要求驗證細節出現,所以這不會起作用。
  2. 你缺少AllowEncodedSlashes Onnocanon聲明。但我不知道這是隻適用於Apache的2.4,我使用

這是我配置的一部分:

AllowEncodedSlashes On 
ReWriteEngine On 

ProxyPass /gerrit http://localhost:8081/gerrit nocanon 

你gerrit.config看起來確定。