Gitlab 5.3后面的nginx反向代理

我有一个成功的Gitlab 5.3安装,一切正常。 我想运行在我设法做的nginx反向代理服务器后面,但所有的资产都丢失了:

Gitlab的首页

我有Gitlab在/ git上运行,这是我的反向代理服务器上的nginxconfiguration:

server { listen 80 default; listen [::]:80 ipv6only=on default; server_name reverseproxy; ## redirect http to https rewrite ^ https://$server_name$request_uri? permanent; } server { access_log /var/log/nginx/ssl_access.log; error_log /var/log/nginx/ssl_error.log; index index.html index.htm index.php; ## start ssl config listen 443; server_name reverseproxy; ## ssl server specifics ssl on; ssl_certificate /root/reverseproxy/reverseproxy.crt; ssl_certificate_key /root/reverseproxy/reverseproxy.key; ssl_session_cache shared:SSK:10m; ssl_session_timeout 10m; ssl_protocols SSLv3 TLSv1; ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP; ssl_prefer_server_ciphers on; location /git { proxy_pass http://gitlabserver/git; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } 

我已经通过nginx访问和错误日​​志,但没有线索。 任何提示不胜感激。

假设git守护进程和nginx守护进程在同一个盒子上,我相信位置块应该如下所示:

 location ^~ /git/ { proxy_pass http://127.0.0.1/git; proxy_redirect http://127.0.0.1/git/ /git; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }