(Nginx-架設-04) --- Nginx 安裝 SSL 憑證,支援 HTTPS
STEP-1. 上傳憑證檔案至網站目錄中
STEP-2. 開啟 Nginx 設定檔,指向 SSL 憑證路徑
加入下列幾行
# 2019-12-23: add SSL CA
listen 443 ssl;
ssl_certificate /xxx/ca/certificate.crt
ssl_certificate_key /xxx/ca/private.key
加入下列幾行
# 2019-12-23: add SSL CA
listen 443 ssl;
ssl_certificate /xxx/ca/certificate.crt
ssl_certificate_key /xxx/ca/private.key