I'm trying to set up gerrit with http auth. It works fine under
apache2 or standalone, but I want to run in under nginx. In gerrint
file logs/error_log I have such an error:
[2010-09-09 18:37:08,019] WARN org.eclipse.jetty.util.log :
HttpException(400,null,null)
My nginx config is something like:
server {
listen 80;
server_name
example.com;
access_log /var/log/nginx/gerrit.log;
location / {
proxy_pass
https://192.168.1.100:8080/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_read_timeout 300;
auth_basic "closed site";
auth_basic_user_file /etc/nginx/gerrit.htpasswd;
}
}
Any ideas of what is wrong here?