Skip to content

Instantly share code, notes, and snippets.

View clayreimann's full-sized avatar

Clay Jensen-Reimann clayreimann

View GitHub Profile

The idea is to have nginx installed and node installed. I will extend this gist to include how to install those as well, but at the moment, the following assumes you have nginx and node installed on a Linux distro.

In a nutshell,

  1. nginx is used to serve static files (css, js, images, etc.)
  2. node serves all the "dynamic" stuff.

So for example, www.foo.com request comes and your css, js, and images get served thru nginx while everything else (the request for say index.html or "/") gets served through node.

  1. nginx listens on port 80.