I'm trying to add a new virtualhost to host a separate website on my Gitlab on-prem version. I have followed the steps in https://stackoverflow.com/a/39695791. I'm trying to set up a reverse-proxy, added the custom_nginx_config direction got /etc/gitlab/gitlab.rb. it looks like the configuration is loaded because when I had a syntax error I could see the syntax issues via gitlabctl-tail. I've fixed the syntax issue and now when I'm reconfiguring/restarting nginx and gitlab-ctl it does not seem to accept the new config.
the new configuration is as follows:
server {
listen *:80;
server_name domain.com;
location / {
proxy_pass http://localhost:4444
}
}
and then when I try to access domain.com I'm getting redirected to the gitlab app and not to my internal app