Created
April 18, 2019 03:04
-
-
Save tinyjin/24fd6fe6ddcfb06dd78aac8193563e7f to your computer and use it in GitHub Desktop.
범용 Nginx SSL 설정 파일 > /etc/nginx/conf.d 에 nginx.conf 로 저장 > <도메인> 부분을 현재 쓰는 실제 도메인으로 변경
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name <도메인>; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443; | |
server_name <도메인>; | |
root /var/www/html; | |
ssl on; | |
ssl_certificate /etc/letsencrypt/live/<도메인>/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/<도메인>/privkey.pem; | |
ssl_session_timeout 5m; | |
ssl_protocols SSLv2 SSLv3 TLSv1; | |
ssl_ciphers HIGH:!aNULL:!MD5; | |
ssl_prefer_server_ciphers on; | |
index index.html index.htm index.nginx-debian.html index.php; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment