乐趣区

关于nginx:Nginx-CertBot-配置HTTPS泛域名证书

# 装置 certbot
yum install certbot python2-certbot-nginx -y
# 主动配置, --nginx-server-root 指定 nginx 配置文件目录
certbot --nginx --nginx-server-root /usr/local/nginx/conf
# 主动续约
certbot renew --dry-run

执行完后 nginx.conf 会主动加上 SSL 相干配置

退出移动版