As with every http server flavour, Nginx has its on set of quirks. After years of .htaccess hacking, we're sure you'll find some use in the latter tricks and modifications.
Since you might want your local environment on the same http server as your webserver, we've created 2 articles, as much mutual aligned as possible.
Set your custom local url
It’s very simple to point custom made urls to your local environment. Open
/etc/hosts as admin and add a name to your liking:
$ sudo nano /etc/hosts > 127.0.0.1 project-api.local