Skip to content

Instantly share code, notes, and snippets.

@tinyjin
Created April 18, 2019 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tinyjin/24fd6fe6ddcfb06dd78aac8193563e7f to your computer and use it in GitHub Desktop.
Save tinyjin/24fd6fe6ddcfb06dd78aac8193563e7f to your computer and use it in GitHub Desktop.
범용 Nginx SSL 설정 파일 > /etc/nginx/conf.d 에 nginx.conf 로 저장 > <도메인> 부분을 현재 쓰는 실제 도메인으로 변경
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