nginx configuration file with virtual directory

view story

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; } server { listen 80; # e.g., listen; root /home/gitlab/gitlab/public; (HowTos)