I’ve installed gitlab on my new vserver with no errors. The vserver runs Ubuntu 20.04 LTS and if I enter my IP address in the browser it shows me the Apache2 Ubuntu Default Page .
While installing gitlab I’ve set my subdomain like this:
The problem is not your domain, but Apache. Gitlab runs nginx as the webserver for ports 80 and 443, and since you have Apache installed it is causing problems. If you do not wish to use nginx because you are installing Gitlab on the same machine as a webserver which is already running, you have two solutions.
Get your VPS a second IP address and bind Gitlab to this. Then nginx will work. Change your domain record for gitlab to use this second IP.
If you don’t need Apache on this VPS then remove it. Then gitlab will work properly with the built-in nginx.
You can verify this by doing:
gitlab-ctl status
it will most likely show that nginx is stopped and not running. Alternatively, if you do need Apache on this machine, and don’t want to configure the reverse proxy, then install Gitlab on it’s own VPS which means there is no problem with other services conflicting like you have right now.