2017-07-14 177 views
0

我使用上ADRESS http://gitlab.example本手册https://docs.gitlab.com/ce/install/installation.htmlgitlab改变主机名IP/gitlab

现在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吗? 感谢您的回答。

回答

0

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

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

+0

Marcolz,谢谢您的回答。但这种方式不适合我。我想使用我现有的数据库服务器MariaDB,并且不希望将PostgreSQL与omnibus一起安装。我想在一台服务器上安装redmine和gitlab。 我对Apache有点了解,并且尝试了解更多。我明白这种方式(使用IP/gitlab)是不正确的。我想我必须使用像“gitlab.example.local”和“redmine.example.local”。 –