nginx will always return the path WITHOUT the trailing slash. I have
the document root configured like this:
root /home/web/www.site.com/html/; # note the trailing slash
We have way too much code in php that gets the document root without
adding a trailing slash after $_SERVER['DOCUMENT_ROOT'] because lighttpd
and apache before that always had preserved the trailing slash.