on 2015-09-30
nginx - Study Log
半調子的紀錄…
Command Line
sudo service nginx start
sudo service nginx restart
sudo service nginx stop
# 測試 nginx 設定
sudo nginx -t
config
# document root
root /usr/share/nginx/html;
# set page show
index index.html index.htm index.php;
# 把 lib 目錄打開
location /lib {
autoindex on;
}