2017-07-14 37 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」。 –