Gitlab和Nginx不加载gitlab

我刚刚在Ubuntu LTS 12.04上使用本指南安装了gitlabnginx: http ://blog.punet.co.za/gitlab-installation-on-ubuntu-server-12-04/

我昨天晚上在另一台服务器上安装了它,并且完全没有任何问题(testing运行需要多长时间才能完成)。 使用/etc/init.d重新启动gitlab或nginx时,我没有收到任何错误,并且我的错误日志是空的。 我唯一知道去的是虚拟主机configuration:

upstream gitlab { server unix:/home/gitlab/gitlab/tmp/sockets/gitlab.sock$ } server { listen localhost:80; server_name gitlab.bluringdev.com; root /home/gitlab/gitlab/public; # individual nginx logs for this gitlab vhost access_log /var/log/nginx/gitlab_access.log; error_log /var/log/nginx/gitlab_error.log; location / { # serve static files from defined root folder;. # @gitlab is a named location for the upstream fallback$ try_files $uri $uri/index.html $uri.html @gitlab; } # if a file, which is not found in the root folder is r$ # then the proxy pass the request to the upsteam (gitla$ location @gitlab { proxy_redirect off; # you need to change this to "https", if you set "ssl" $ proxy_set_header X-FORWARDED_PROTO http; proxy_set_header Host gitlab.bluringdev.com:80; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://gitlab; } } 

如果有任何其他信息会有所帮助,请告诉我,我会尽快解决。

我将从下面的官方gitlab文档开始:

https://github.com/gitlabhq/gitlabhq/blob/stable/doc/installation.md

此外,我怀疑你已经剪切和粘贴你的configuration发布你的问题,因为上面的行结束不应该有'$'追加。 上游的gitlab块应该是这样的:

 upstream gitlab { server unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket; }