HARDENING NODE.JS FOR PRODUCTION PART 2: USING NGINX TO AVOID NODE.JS LOAD

Method to load a Node.js site using nginx per the gist below. The blog post contains a full walk-through of the configuration. The config proxies the HTTP traffic from the Node processes, directly handles static files so that Express doesn't have to do it, uses the nginx built-in caching, and turns on gzip. All this could be done in Node/Express, but is going to be more efficient to let Nginx do it.

http://blog.argteam.com/coding/hardening-node-js-for-production-part-2-using-nginx-to-avoid-node-js-load/

https://gist.github.com/3072833