gitlab将主机名更改为ip/gitlab

gitlab将主机名更改为ip/gitlab,gitlab,ubuntu-16.04,apache2.4,Gitlab,Ubuntu 16.04,Apache2.4,我使用本手册从源代码安装了Gitlab 现在GitLab正在研究地址。我想将主机名更改为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 gitl

我使用本手册从源代码安装了Gitlab

现在GitLab正在研究地址。我想将主机名更改为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吗?
感谢您的回答。

服务器名不能包含
/
,因此
192.168.1.1/gitlab
将不起作用。 您可以简单地尝试
192.168.1.1


但是,如果您不知道如何配置apache,您可能需要尝试ombnibus安装…

Marcolz,谢谢您的回答。但这条路不适合我。我想使用我现有的数据库服务器MariaDB,不想将PostgreSQL与omnibus一起安装。我想在一台服务器上安装redmine和gitlab。我对阿帕奇有一点了解,我试图了解更多。我理解这种方式(使用Ip/gitlab)是不正确的。我想我必须使用类似“gitlab.example.local”和“redmine.example.local”的东西。你可以(也许)使用反向代理通过主机/路径访问你的gitlab实例。