Jānis Blaus
Jānis Blaus

Reputation: 173

Apache and GitLab on same server

I have a problem, that nginx is saying that :80 port is already in use by gitlab.

By editing /etc/gitlab/gitlab.rb I've changed

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

And it's not working.

Tried to change /opt/gitlab/embedded/conf/nginx.conf port to 81 - same problem.

After each action I executed

gitlab-ctl reconfigure && gitlab-ctl restart

What I`m doing wrong? How to change gitlab port to another one?

Upvotes: 3

Views: 4269

Answers (2)

Jānis Blaus
Jānis Blaus

Reputation: 173

After few hours of brainstorming I did found a solution to my problem:

I just needed to open 81 port. :)

Upvotes: 1

Corbin
Corbin

Reputation: 406

First,

sudo -e /etc/gitlab/gitlab.rb

Then, change external_url from example.com to example.com:81.

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

Upvotes: 1

Related Questions