`
yan578351314
  • 浏览: 163009 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

CentOS安装gitlab Apache 502

 
阅读更多
错误信息
Proxy Error

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

Apache Gitlab 配置文件
<VirtualHost *:80>
  ServerName 192.168.11.129
  ProxyRequests Off
    <Proxy *>
       Order deny,allow
       Allow from all
    </Proxy>
    ProxyPreserveHost On
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/

    SetEnv force-proxy-request-1.0.1
    SetEnv proxy-nokeepalive 1
</VirtualHost>

解决办法:
设置config/unicorn.rb文件中的timeout为60(默认设置是30)
vim /home/gitlab/gitlab/config/unicorn.rb
#找到这一行timeout 30,将30改为60
#重启Gitlab
service gitlab restart

具体可参考https://github.com/gitlabhq/gitlabhq/issues/2216
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics