nginx

Basic

Install

On Mac

brew install nginx

Docker

docker pull nginx

Configuration

On Mac

vim /usr/local/etc/nginx/nginx.conf

and change the:

server {
    listen       8080;
    server_name  localhost;

    #access_log  logs/host.access.log  main;

    location / { 
        root   /opt/local/www; # website file location
        index  index.html index.htm;
    }