Best practices suggest your vhost's root directory is not the same as each location's root directory.

Enables directory listings.
Designates location as internal-only. See nginx documentation for more details.
The last file should be the accessor to your PHP script or front controller. More information.
name value, separated by comma. Unlike Apache, each variable must have a value.
name value, separated by comma. More information.
name value, separated by comma. More information.
Location Rewrites
Click to add a location rewrite rule