Gitlab omnibus: disable + install separate Nginx to use more domains

February 17, 2015 3.3k views


I am using the 1click Gitlab installer on Ubuntu droplet. I want to configure subdomains to point to different folders (so I can hook repos to those subdomains/folders) but Nginx server coming with omnibus is a pain to work with.

I followed this answer and Using a non-bundled web-server tutorial to run a separate Nginx server, but I am unable to make it run. Gitlab continues to work in my subdomain and all other subdomains point to Gitlab as well, as if no other configuration was loaded.

I have also added DNS for all subdomains (pointing to droplet IP), added enabled-sites/subdomain file to configure the server, restarted nginx service and reconfigured gitlab, quite clueless right now.

Any help much appreciated.

  • Could you share your actual Nginx configuration on a pastebin? It could help us figure out the issue. Also, what's the output of ps aux | grep nginx ? Does it show:

    root       900  0.0  0.1  31108  2900 ?        Ss   15:18   0:00 nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx


    root      3584  0.0  0.0  85872  1344 ?        Ss   15:34   0:00 nginx: master process /usr/sbin/nginx
  • @asb
    I'm having my the same problem solving the same issue. Here's the output you had previously requested from the OP.

    root@git ~# ps aux | grep nginx
    root       862  0.0  0.0   4208   332 ?        Ss   Jul19   0:00 runsv nginx
    root       875  0.0  0.0   4352   308 ?        S    Jul19   0:00 svlogd -tt /var/log/gitlab/nginx
    root       878  0.0  0.1  41344  1536 ?        Ss   Jul19   0:00 nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
    gitlab-+   894  0.0  0.6  45568  6624 ?        S    Jul19   0:00 nginx: worker process                                   
    root      7194  0.0  0.0  11744   936 pts/0    S+   19:35   0:00 grep nginx
Be the first one to answer this question.