I have installed Gitlab CE version. I can find nginx bundled in Gitlab. However I cannot find a way to restart nginx separately. I have tried sudo service nginx restar
To restart only one component of GitLab Omnibus you can execute sudo gitlab-ctl restart <component>
. Therefore, to restart Nginx:
sudo gitlab-ctl restart nginx
As a further note, this same concept is possible with nearly all of the gitlab-ctl
commands. For example, sudo gitlab-ctl tail
allows you to see all GitLab logs. Applying this concept, sudo gitlab-ctl tail nginx
will tail only Nginx logs.
My tuto explains how to add vhosts to a NON-bundled nginx server, not the bundled one.
The steps are :
If sudo service nginx restart
return
* Restarting nginx nginx [fail]
then you probably installed nginx separately with something like sudo apt-get install nginx
or you installed the recompiled version with pushion passenger module as I explain in my tuto ?
Do you really use the bundled version or you misunderstood this step in my tuto ?
Please answer these questions in comments then I will edit this answer to write the solution you really need.
To restart bundled nginx do sudo gitlab-ctl restart