1

nginx configuration file with virtual directory

view story
linux-howto

http://serverfault.com – Trying to use the excellent gitlab app (https://github.com/gitlabhq/gitlabhq), which works fine when I go directly to it w/o nginx, and it also works with their provided config that serves it over the root path (/). But I want to serve it off a virtual directory of /gitlab since I have an existing app that I also want to serve. I can't subdomain in my environment, so paths are it. Here's my config: # GITLAB # Maintainer: @randx # App Version: 2.9 upstream gitlab { server 127.0.0.1:5000; } server { listen 80; # e.g., listen 192.168.1.1:80; root /home/gitlab/gitlab/public; (HowTos)