optimize nginx.conf as per http://blog.zachorr.com/nginx-setup/