用户工具

站点工具


setup_https_with_nginx_and_letsencrypt

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
setup_https_with_nginx_and_letsencrypt [2020/07/22 12:56] – 外部编辑 127.0.0.1setup_https_with_nginx_and_letsencrypt [2024/02/04 04:49] (当前版本) – 外部编辑 127.0.0.1
行 31: 行 31:
 certbot certonly --standalone --email <xxx>@<xxxmail.com> -d <xxx>.com -d www.<xxx>.com certbot certonly --standalone --email <xxx>@<xxxmail.com> -d <xxx>.com -d www.<xxx>.com
 ``` ```
 +
  
 ===== 配置nginx的 http 和https跳转===== ===== 配置nginx的 http 和https跳转=====
行 57: 行 58:
        return         301 https://$server_name$request_uri;        return         301 https://$server_name$request_uri;
 } }
 +```
 +
 +===== 添加新域名到已有证书下 =====
 +
 +```
 +certbot certonly --cert-name example.com -d m.example.com,www.m.example.com
 ``` ```
  
setup_https_with_nginx_and_letsencrypt.1595422567.txt.gz · 最后更改: (外部编辑)