Reputation: 461
I'm trying to configure own gerrit server with HTTP authorization. The APACHE server works in reverse proxy mode. In order to setup whole system I've followed tutorial from below url:
http://hacklog.tumblr.com/post/104627701707/gerrit-apache-reverse-proxy-http-auth-with-anon
Before gerrit installation I've installed mysql data base and I've added user to the database as it's suggested in url:
https://gerrit-documentation.storage.googleapis.com/Documentation/2.9.2/install.html
Here is also my apache-gerrit.conf file:
<VirtualHost *>
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location /gerrit/login/>
AuthType Basic
AuthName "Gerrit Code Review"
Require valid-user
AuthBasicProvider file
AuthUserFile /etc/apache2/passwords
</Location>
AllowEncodedSlashes On
ProxyPass /gerrit/ http://127.0.0.1:8081/gerrit/ nocanon
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
The next file is my gerrit.conf file :
[gerrit]
basePath = git
canonicalWebUrl = http://192.168.1.3/gerrit/
[database]
type = mysql
hostname = localhost
database = reviewdb
username = gerrit2
[index]
type = LUCENE
[auth]
type = HTTP
loginUrl = http://192.168.1.3/gerrit/login/
[sendemail]
smtpServer = localhost
[container]
user = gerrit2
javaHome = /usr/lib/jvm/java-7-openjdk-amd64/jre
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = proxy-http://localhost:8081/gerrit/
[cache]
directory = cache
The problem is when I'm trying to log in to gerrit server I'm getting internal server errors.
After receiving few of those I'm logged in as Anonymous Coward, and later I receive more internal server errors when I'm trying to log out.
I'd be grateful if anyone could advise me where should I search for problem?
Upvotes: 1
Views: 1536
Reputation: 4516
You can remove "loginUrl". This is only used if you use a "special" login handling. It is okay when you get "Anonymous Coward" - you just need to set your name in settings. I think it would also help if you check (error-)logs: logs/error_log.
Upvotes: 1