我有一个 NGINX 服务器,我正在尝试使用 Let's Encrypt 添加 SSL。
我的开发设置如下:
url : dev.domain.in
root: /var/www/dev/html
生产情况如下:
url : domain.in
root: /var/www/production/html
因此,在我的 nginx 默认页面中,我有两个服务器块,一个用于开发,另一个用于生产
我想为两台服务器提供一份证书。
我知道根据 Let's Encrypt 网站,命令如下
cd /opt/letsencrypt ./letsencrypt-auto certonly -a webroot --webroot-path=/usr/share/nginx/html -d example.com -d www.example.com
但这只有在 SUBDOMAIN 具有相同的 webroot 时才能完成,这在我的情况下是不正确的。
那么我如何在这里为两者添加 CERT
请帮帮我