We love Nginx, if only for it's small footprint. It became our HTTP server of choice, even for light CDN web apps or Wordpress and Ghost websites.

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.

Nginx on OSX

Nginx on Linux

OSX Notes

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
>       project-api.local