Server - let's encrypt 후 사이트 접속이 되지 않을 때
조회수: 15온라인에서 알려주는 방식으로 신나게 따라한 후 갑자기 사이트에 되지 않을 때가 있을 것이다.
해결을 하기 위해 nano /etc/nginx/sites-available/your_domain_name
실행해서 들어가자.
아래와 같이 443 있는 부분을 찾자.
이렇게 넣어서 실행해보자. 아마? 작동할 것이다!
listen 443 ssl http2; # managed by Certbot
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/your_domain.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/your_domain.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot