Gitlab6.0和Apache2

时间:2013-09-10 18:38:30

标签: apache2 ubuntu-12.04 gitlab

请问如何使用Apache2设置Github 6.0?

根据原始说明安装Gitlab

Unicorn.rb中的调整


    ...
    #listen "/home/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 64
    #listen "127.0.0.1:8080", :tcp_nopush => true
    listen "127.0.0.1:8080"
    ...

我的Apache2 conf是:


    <VirtualHost *:80>
        ServerName git.domain.com

        ErrorLog /var/log/apache2/gitlab_error.log
        CustomLog /var/log/apache2/gitlab_access.log combined

        ProxyRequests Off
        ProxyPreserveHost On
        ProxyPass / http://127.0.0.1:8080/
        <Location />
            ProxyPassReverse /
            Order deny,allow
            Allow from all
        </Location>
    </VirtualHost>

我得到了:


    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request GET /users/sign_in.

    Reason: Error reading from remote server

谢谢

1 个答案:

答案 0 :(得分:1)

如果这有助于其他任何人;

我遇到了同样的问题,但在我的情况下缺少磁盘空间。我删除了一些大型备份,并用service httpd restart重新启动了apache,我的gitlab又回来了。