用户工具

站点工具


setup_https_with_nginx_and_letsencrypt

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
setup_https_with_nginx_and_letsencrypt [2018/01/15 10:30] jiajisetup_https_with_nginx_and_letsencrypt [2024/02/04 04:49] (当前版本) – 外部编辑 127.0.0.1
行 1: 行 1:
 +## 使用Letsencrypt 配置https
 +
 注意:以下都是以ubuntu 16.04 环境为例子, 默认安装好了nginx 注意:以下都是以ubuntu 16.04 环境为例子, 默认安装好了nginx
  
行 29: 行 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跳转=====
行 55: 行 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.1516012224.txt.gz · 最后更改: (外部编辑)