Apache 和 GitLab 在同一台服务器上

Apache and GitLab on same server

我有一个问题,nginx 说 :80 端口已经被 gitlab 使用了。

通过编辑 /etc/gitlab/gitlab.rb 我已经更改

external_url 'http://git.host.com:81'

它不起作用。

尝试将 /opt/gitlab/embedded/conf/nginx.conf 端口更改为 81 - 同样的问题。

在我执行每个动作后

gitlab-ctl reconfigure && gitlab-ctl restart

我做错了什么?如何将 gitlab 端口更改为另一个端口?

首先,

sudo -e /etc/gitlab/gitlab.rb

然后,将 external_urlexample.com 更改为 example.com:81

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

经过几个小时的头脑风暴,我确实找到了解决问题的办法:

我只需要打开81端口。 :)