2013-11-27 19 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看起来确定。