작성일 : 2023-12-20
OS : Ubuntu 22.04 LTS
Nginx : 1.18.0
sudo apt update
sudo apt upgrade
sudo apt remove nginx
sudo apt install nginx
Certbot은 HTTPS를 활성화하기 위해 수동으로 관리되는 웹사이트에서 Let’s Encrypt 인증서를 자동으로 사용하는 무료 오픈 소스 소프트웨어 도구입니다.
Certbot - Link
Let's Encrypt - Link
sudo apt install certbot
sudo apt install python3-certbot-nginx
server {
listen 80;
server_name {도메인};
location / {
proxy_pass http://{target IP};
proxy_set_header Host {도메인};
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
# 최초설치
certbot
# 갱신
certbot renew
crontab -e
----------------------------------------
0 12 * * * /usr/bin/certbot renew --quiet
Tags : Nginx설치, Nginx설정, SSL설정, SSL설치, 무료인증서, certbot설치, letsencrypt설치*, _certbot설정*, letsencrypt설정*, *인증서 연장_