我使用这个手册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吗?感谢您的回答。
发布于 2017-07-18 23:37:51
服务器名不能包含/,因此192.168.1.1/gitlab将不起作用。您可以尝试简单地使用192.168.1.1
但是如果您不知道如何配置apache,那么您可能想尝试一下ombnibus安装……
https://stackoverflow.com/questions/45099981
复制相似问题