Forbid redirecting to ip address

Hi,
I am facing the problem that I am always redirected to the ip address of my server. I found already several suggestions how to solve it, but nothing worked so far.

I did not setup ngnix

The only setting changed is:
external_url ‘http://git.mydomain.com

Does anyobody know, what could be the problem?

Thanks.

Hi @gitTester1234,

For external_url to work as expected, you’ll need to set up a DNS A record that points to the IP address.

Can you confirm you have set a DNS A record for external_url that points to the GitLab Server IP?

Additionally, if you’ve made any changes to gitlab.rb, you must first run sudo gitlab-ctl reconfigure before the changes are applied. If you haven’t already done so, please run sudo gitlab-ctl reconfigure and let us know if this resolves the problem.

Hi @gitlab-greg,

thank you very much. It was indeed the DNS A record.

Now everything is working smoothly.