将 gitlab 与 apache2 结合使用

将 gitlab 与 apache2 结合使用

我正在尝试在我的 Debian 8 服务器上安装 GitLab,同时使用 apache2 而不是 nginx。

问题是我得到了

Proxy Error

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

Reason: Error reading from remote server

Apache/2.4.10 (Debian) Server at gitlab.o190.orange.fastwebserver.de Port 80

尝试访问网页时。

我的虚拟主机配置

<VirtualHost *:80>
  ServerName gitlab.o190.orange.fastwebserver.de

  # Custom log file locations
  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>

gitlab_错误日志

[Fri Sep 11 05:23:21.619418 2015] [proxy_http:error] [pid 5949] (20014)Internal error: [client 37.120.47.14:49199] AH01102: error reading status line from remote server 127.0.0.1:8080
[Fri Sep 11 05:23:21.619467 2015] [proxy:error] [pid 5949] [client 37.120.47.14:49199] AH00898: Error reading from remote server returned by /

相关内容