Nginx ROCKS! In this Nginx Tutorial, we’re going to setup Nginx to receive http requests to our domain name (port 80), then proxy to our Express.js Node.js App, which is running on port 3000.

View Nginx Configuration Code here:

We’re also going to set it up Nginx load balancing, so the http requests will get evenly distributed between all of our servers.
See full documentation on Load Balancing (upstream) here:

Lastly, we’re going to setup static file caching on Nginx, so our css, js and image files are only served from our Node.js application the first time…this DRASTICALLY improves application performance.





Comments are closed.