nginx - weakish/cheat GitHub Wiki

Install on Debian/Ubuntu:

sudo apt-get install nginx

Catch all configuration:

server {
      listen      80 default_server;
      Index       index.html;
      root        /var/www/html;
}

In Ubuntu/Debian, for satic website, you don't need to do any configuration. Just put the static files under /usr/share/nginx/html/.