Skip to content

Latest commit

 

History

History
executable file
·
47 lines (32 loc) · 501 Bytes

nginx.md

File metadata and controls

executable file
·
47 lines (32 loc) · 501 Bytes
title layout updated
nginx
2017/sheet
2017-11-25

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;
    }