nginx.conf 파일 내 설정 (리눅스 아님)
server {
listen 80;
server_name 도메인(abc.com);
location / {
return 301 https://도메인$request_uri; ## HTTPS로 리다이렉팅
}
}
server {
listen 443 ssl http2;
server_name 도메인(abc.com or localhost);
ssl on;
ssl_certificate C:\ca\도메인-chain.pem;
ssl_certificate_key C:\ca\도메인-key.pem;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:HIGH:MEDIUM:!MD5:!aNULL:!EDH:!RC4:!DSS;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
location / {
root C:\admin\dist;
index index.html index.htm;
}
}