You will need to create two different vhost files for each of the projects (Gitlab and your main site).
In your ghostlab vhost file, you can use the default file by changing some fields:
Then create a new symlink in your / sites-enabled / folder:
$ sudo rm /etc/nginx/sites-enabled/example $ sudo ln -s /etc/nginx/sites-available/example /etc/nginx/sites-enabled/example
Restart Nginx service nginx restart .
If still not working, check your error log using tail -f /var/log/nginx/gitlab_error.log . This can help you figure out what else you are missing.
Note: For this answer, the version of PHP that I used was 5.3.10, and the version of Nginx was 1.1.19.
References
How to configure Nginx as a reverse proxy for Apache - https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-for-apache
Tail Team - http://en.wikipedia.org/wiki/Tail_%28Unix%29
Matheus santos
source share