pjwogkjwji 发表于 2016-5-9 08:20:49

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
页: [1]
查看完整版本: CentOS安装gitlab Apache 502