错误信息
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
CentOS安装gitlab Apache 502
最新推荐文章于 2024-01-26 10:36:39 发布