8

我可以登录 gerrit 服务器并查看代码。但是当我点击退出时,点击右上角的退出链接无法退出,它将返回代码审查仪表板页面

下面是我的httpd.conf和gerrit.config,请帮帮我!!!咳咳……

<VirtualHost *>  
  ServerName localhost 
  ProxyRequests Off  
  ProxyVia Off  
  ProxyPreserveHost On  

  <Proxy *>  
        Order deny,allow  
        Allow from all  
  </Proxy>  

  <Location /login/>  
     AuthType Basic  
     AuthName "Gerrit Code Review"  
     AuthBasicProvider file  
     AuthUserFile /home/kk/gerrit/server/etc/passwords  
     Require valid-user  
  </Location>  

  ProxyPass / http://10.10.68.224:9091/
  ProxyPassReverse / http://10.10.68.224:9091/
</VirtualHost>  

gerrit.config

[gerrit]
    basePath = git
    canonicalWebUrl = http://10.10.68.224:9091/
[database]
    type = H2
    database = db/ReviewDB

[auth]
    type = HTTP
[sendemail]
    smtpServer = localhost
[container]
    user = kk
    javaHome = /usr/lib/jvm/java-6-sun-1.6.0.26/jre
[sshd]
    listenAddress = *:29418
[httpd]  
        listenUrl = proxy-http://10.10.68.224:9091/  
[cache]
    directory = cache
4

2 回答 2

13

我用了一个不好的方法来修复它。我在 auth 部分添加以下内容。

logoutUrl = http://aa:aa@10.10.68.224 
于 2012-08-09T11:39:50.913 回答
4

You are using HTTP Basic authentication. There is no way to tell a browser to quit sending basic authentication credentials (other than closing the browser).

The following question and answers provide some additional information: How to logout user for basic HTTP authentication

于 2012-08-09T09:07:42.043 回答