使用nginx
sudo nginx -s stop && sudo nginx在Linux ubuntu 下的default webpage 路徑為
var/www/html/usr/share/nginx/htmlnginx的config 檔案路徑
/etc/nginx/nginx.conf
/etc/nginx/sites-available/default使用reverse proxy
location / {
proxy_pass http://localhost:3000;
}讓domain.com www.domain.com都導向https
設定靜態目錄
websocket有問題
注意事項
配置GZIP
配置Request Limit
配置Load Balance
可能錯誤
讀取index.html
配置優化
注意事項
2.nginx: [emerg] open() "/usr/local/Cellar/nginx/1.15.0/logs/error.log" failed (2: No such file or directory)
Last updated