Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gerrit+apache2 can't sign out

I can login the gerrit server and review code. But I can't log out by clicking sign out link on the upper-right when I click sign out, it will return to Code Review Dashboard page

Below is my httpd.conf and gerrit.config, please help me!!! tks...

<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
like image 423
kane Avatar asked Aug 09 '12 08:08

kane


2 Answers

I used a bad way to fix it. I add the following in auth section.

logoutUrl = http://aa:[email protected] 
like image 74
kane Avatar answered Sep 21 '22 20:09

kane


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

like image 37
Greg Hewgill Avatar answered Sep 21 '22 20:09

Greg Hewgill