Change domain name

Hello guys.

How I can change the domain name of my server ? Actually is gitlab.example.com and when I create a project the links are created with this domain…

I have instaled on Centos 6.6 with “easy method”, you guys recomend use manual method ?

1 Like

Read carefully the documentation https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

Everything you need is in there :wink:

1 Like

RTFM is not a helpful answer. But I understand your reservations about giving the real answer to someone who doesn’t know about the gitlab config file, @axil

@leortiz You will need to modify the external_url in /etc/gitlab/gitlab.rb (or wherever it is in your installation).

Change it to the new value and re-run configuration.

sudo gitlab-ctl reconfigure

Then you’ll probably need to restart.

sudo gitlab-ctl restart

If it breaks, well then you need to RTFM. :slight_smile:

1 Like

Well, that answer was almost 3 years ago, where the README might have had all the info needed :slight_smile:

Yes, but here is me 4 years later, very grateful for @eanbowman answer which saved me having to RTFM :slight_smile:

1 Like

@eanbowman thanks it works great.

Running into a weird issue with Gitlab 15.7 like this.

But I think I may have figured it out as I wrote out this post, going to document in case anyone else has the same issue. It looks like it’s resolved it so far, it also was not 100% consistent, I initially thought that it was a caching thing as the instance is only a few weeks old.

TLDR: I unset the external_url value following some guide when switching from https on the server to https on my reverse proxy.

Sometimes the gitlab logo in the top right hand corner would take me back to “gitlab.local” (hostname of server is gitlab so at least that makes a little bit of sense) instead of the fqdn. Also the project logos would occasionally not load. Inspecting the gitlab logo at least the href was “/”, so really had no idea why it would be sending me to “gitlab.local” when the URL of the page I was on was “gitlab.example.com

When I originally installed it I configured it for gitlab to handle the HTTPS but changed this over time, in this guide (Configure SSL for the GitLab Linux package | GitLab).

I reread the guide and like most issues I run into it was caused by me speed reading the documentation. Thought that it said to remove the external_url line completely from the gitlab.rb