阿里云配置小程序证书 https总结
2017-10-16 17:04
483 查看
第一条 nginx.conf的配置过程中 请先另存一份 修改了两次其他的文件没动,但是nginx启动不了 ,估计是bom头的原因
步骤2:购买后按提示绑定域名,提交等待审核(一般20分钟左右)
步骤3:审核通过后,在我的证书订单列表中点击下载,进入选择下载对应不同服务器类型(apache, nginx, iss…)的证书文件(.pem, .key)
步骤4:按提示的配置信息,上传刚下载的两个证书文件到服务器,并配置nginx.conf
步骤5:nginx.conf 配置文件中添加:注要监听443 商品
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
步骤6: 重启服务: /etc/init.d/nginx restart
操作步骤
步骤1:登录阿里后台 –> 证书服务 –> 点击购买证书(像商品购买)步骤2:购买后按提示绑定域名,提交等待审核(一般20分钟左右)
步骤3:审核通过后,在我的证书订单列表中点击下载,进入选择下载对应不同服务器类型(apache, nginx, iss…)的证书文件(.pem, .key)
步骤4:按提示的配置信息,上传刚下载的两个证书文件到服务器,并配置nginx.conf
步骤5:nginx.conf 配置文件中添加:注要监听443 商品
配置文件:
server { # 监听443 端口 listen 443; server_name www.xxx.com xxx.com; ssl on; # root html; # index index.html index.htm; # 证书路径 ssl_certificate /alidata/server/nginx-1.4.4/conf/cert/214134739980111.pem; # 私钥路径 ssl_certificate_key /alidata/server/nginx-1.4.4/conf/cert/214134739980111.key; # 缓存有效期 ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; # 安全链接可选的加密协议 ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; # 自定义部分, 注释了模板上面的二行 index index.html index.htm index.php; root /alidata/www/www.xxx.com; error_page 404 /404.html; location ~ .*\.(php|php5)?$ { #fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 1h; } # rewrite, log include /alidata/server/nginx/conf/rewrite/www.xxx.com.conf; access_log /alidata/log/nginx/access/www.xxx.com.log; }1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
步骤6: 重启服务: /etc/init.d/nginx restart
相关文章推荐
- 微信小程序开发(6)---Tomcat配置阿里云SSL证书(配置HTTPS)
- 为小程序实现TLS v1.2在阿里云主机免费申请https证书(图解)
- 为微信小程序开发做准备,在Centos 6.8下利用letsencrypt.sh脚本为nginx 配置免费https证书
- 阿里云域名配置HTTPS证书
- 阿里云申请免费DV SSl(https证书),及详细配置运用
- 阿里云https证书tomcat配置方法
- 【LNMP】基于阿里云的https免费证书配置
- 使用阿里云https证书nginx安装配置详解
- 阿里云SLB HTTPS证书配置
- 配置赛门铁克(Symantec)https证书:从阿里云申请免费赛门铁克(Symantec)https证书并配置到cdn
- window2008下基于阿里云免费HTTPS证书+apache2.4.27的HTTPS配置方法
- 为微信小程序搭建https服务,证书申请及配置。Apache服务器。重点描述request:fail ssl hand shake error 错误
- 天河微信小程序入门《二》:阿里云tomcat免费配置https
- 【Tomcat】-- 小程序开发 tomcat 申请阿里云HTTPS配置
- 阿里云 免费 证书,生成 p12 crt cer 文件,以及 在 spring boot 项目 中 的https 配置
- 阿里云申请的免费证书,配置到Tomcat,实现https访问
- 阿里云服务器配置HTTPS证书记录
- windows2008 phpstudy https证书配置实现微信小程序wx.request发起的 HTTPS 请求。
- window2008下基于阿里云免费HTTPS证书+apache2.4.27的HTTPS配置方法
- 天河微信小程序入门《二》:阿里云tomcat免费配置https