首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >gitlab将主机名更改为ip/gitlab

gitlab将主机名更改为ip/gitlab
EN

Stack Overflow用户
提问于 2017-07-14 17:54:22
回答 1查看 1.1K关注 0票数 0

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

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

代码语言:javascript
复制
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吗?感谢您的回答。

EN

回答 1

Stack Overflow用户

发布于 2017-07-18 23:37:51

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

但是如果您不知道如何配置apache,那么您可能想尝试一下ombnibus安装……

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45099981

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档