【问题标题】:gitlab change hostname to ip/gitlabgitlab 将主机名更改为 ip/gitlab
【发布时间】:2017-12-19 09:05:11
【问题描述】:

我使用本手册https://docs.gitlab.com/ce/install/installation.html从源代码安装了Gitlab

现在 GitLab 在地址 http://gitlab.example 上工作。我想将主机名更改为 192.168.1.1/gitlab。

I changed in file /home/git/gitlab/config/gitlab.yml
host: gitlab.example to host: 192.168.1.1/gitlab

in file /home/git/gitlab-shell/config.yml
gitlab_url: http://gitlab.example 
to gitlab_url: http://192.168.1.1/gitlab

I use Apache2.4 and configure with this example 
https://gitlab.com/gitlab-org/gitlab-recipes/blob/master/web-server/apache/gitlab-apache24.conf

I changed ServerName gitlab.example to gitlab or 192.168.1.1/gitlab

但它不起作用。 我忘记了什么?如何更改 gitlab 的 URL。 我可以同时使用 gitlab.example 和 192.168.1.1/gitlab 吗? 感谢您的回答。

【问题讨论】:

    标签: gitlab ubuntu-16.04 apache2.4


    【解决方案1】:

    服务器名称不能包含/,因此192.168.1.1/gitlab 将不起作用。 你可以试试192.168.1.1

    但是如果你不知道如何配置 apache,你可能想试试 ombnibus 安装...

    【讨论】:

    • Marcolz,感谢您的回答。但这种方式不适合我。我想使用我现有的数据库服务器 MariaDB 并且不想将 PostgreSQL 与omnibus 一起安装。我想在一台服务器上安装 redmine 和 gitlab。我对 Apache 有一点了解,并尝试了解更多。我知道这种方式(使用 Ip/gitlab)是不正确的。我想我必须使用“gitlab.example.local”和“redmine.example.local”之类的东西。
    • 您可以(也许)使用反向代理通过主机/路径访问您的 GitLab 实例。
    猜你喜欢
    • 2018-09-28
    • 1970-01-01
    • 1970-01-01
    • 2019-09-03
    • 1970-01-01
    • 2013-02-26
    • 2016-12-30
    • 1970-01-01
    • 2021-11-07
    相关资源
    最近更新 更多