Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 232
Jānis Blaus Avatar asked Feb 02 '26 03:02

Jānis Blaus


1 Answers

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
like image 180
Corbin Avatar answered Feb 04 '26 19:02

Corbin