在 Debian 8.0 上,我试图让 Apache 2.4.10 作为虚拟主机管理 GitLab CE 7.10 Omnibus 安装。
Apache 2 已经设置并运行了几个看起来像
vhost.example.com.
我想配置 Apache 和 GitLab,以便git.example.com由 Apache 处理以显示 GitLab Web 界面。
为此,我遵循了/sf/answers/1806681341/ 中描述的程序 。
我可以访问 GitLab 的主页git.example.com,但无法访问任何其他资源,例如 CSS 或图标。Apache 日志显示四个错误,它们看起来都像:
[Sun May 10 20:24:57.146329 2015] [authz_core:error] [pid 4141] [client 1.2.3.4:80] AH01630: client denied by server configuration: /opt/gitlab/embedded/service/gitlab-rails/public/assets/application-TOKEN.css, referer: http://git.example.com/
Run Code Online (Sandbox Code Playgroud)
在网上搜索并尝试了几项更改后,我被困在这里。有谁知道如何解决这个问题?
此外,这里是我使用的“有趣”配置文件:
/etc/apache2/sites-enabled/git.conf:
<VirtualHost git.example.com:80>
ServerAdmin admin@example.com
DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public
ServerName git.example.com
ServerAlias git.example.com
ProxyPreserveHost On
<Location …Run Code Online (Sandbox Code Playgroud)