How To Change Gitlab IP URL With Hostname In Linux

How To Change Gitlab IP URL, If you want to access Gitlab Server with hostname instead of IP address, So it can be done. You just need to Point the IP address to Host-name in DNS Server. You can change the host-name, and URL with external GitLab URL not working.  

Check OutHow To Configure Samba Server For File Sharing

How To Change Gitlab IP URL With Hostname:

I have made an entry in /etc/hosts because I do not have a DNS server configured here. You can do the same if you do not have DNS Server configured.you can also buy a domain name and configure this with GitLab IP and access with the domain name.  

Check Out: Merge Branch In Git

Make an Entry in the Host file

vim /etc/hosts

{Ipaddress host-name }

gitlab external url

Check Out: How To Enable And Disable htaccess In Apache Web Server

Now make changes in Git-lab file at the location /etc/gitlab/gitlab.rb and look for external_url

Changed it to

external url gitlab

To make changes in a file run,

gitlab-ctl reconfigure

Check Out: Redirection HTTP To HTTPS In Giltab

As you can see git-lab has been now accessible with host name http://gitlab.local.com

gitlab hostname change

YouTube Link: Change Gitlab URL

You’re done gitlab url not working gitlab external url gitlab change hostname Gitlab Server with hostname

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment