我正在尝试在运行 CentOS 6.5 和 Apache 作为 Web 服务器的现有服务器上安装 GitLab。 gitlab 服务应该可以通过子域访问。我正在使用 Omnibus 安装包。安装后我创建了 gitlab.rb 配置文件:
sudo mkdir -p /etc/gitlab
sudo touch /etc/gitlab/gitlab.rb
sudo chmod 600 /etc/gitlab/gitlab.rb
并添加:
external_url "http://gitlab.the_domain.com"
用于子域 url。重新启动并重新配置 GitLab 后,当我继续“domain.com”时,它显示 GitLab 登录页面而不是应显示的网站。
有没有办法解决此问题并在子域上使用 GitLab,并使用 Omnibus 安装包在域上使用主站点?
最佳答案
external_url
用于项目url中显示的链接,子域由nginx/apache配置
关于git - 在子域上安装 Omnibus Gitlab,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23517632/