I have a PC running ubuntu server 22.04LTS, Apache2 2.4 and gitlab-ce latest stable version since 01-09-2023 (where is your version file?) subsequent searches tells me that it’s 15.7.2-ce.0)
I have other applications accessible via apache2 (sql-ledger) as I had it on my older PC server. I was able to install both sql-ledger & gitlab on it and they did play nice together. (I was using the built in web server nginx on the previous setup).
When I use the same configuration on this new server I can see the “unable to bind 0.0.0.0 , already in use” error occurring in the gitlab logs. So I decided to turn off nginx and just use apache2 as the web server. I copied the configuration file for gitlab: gitlab-apache24.conf and change it to suit my needs.
It has not gone well!
First, my network has no domain name, it is just a subnet with some known IP addresses/hostnames. For instance the PC is europa. So when the configure file wants a FQDN:
<VirtualHost *:80>
ServerName europa
ServerSignature Off
ProxyPreserveHost On
...
</VirtualHost>
As you can see I just put in europa.
Same thing for ProxyPassReverse
The three changes I did for “gitlab.rb” are:
external_url 'http://europa/gitlab'
nginx['enable'] = false
git_data_dirs({
"default" => {
"path" => "/data0/opt/gitlab/git-data/"
}
})
So, I then do the systemctl restart apache2 and gitlab-ctl reconfigure and now …
sql-ledger know longer works and gitlab is not accessible.
Web page displayed;
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.
So what have I missed here in my setup? Any helpful advice will be appreciated.
Happy New Year and Cheers!!