微信小程序-SSL证书-阿里云ecs服务器-linux

 
0、SSL证书验证

 

 

 

站点根目录建一下文件夹 然后这个压缩包直接放进去,我来验证
 

 

 

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
47
48
#  流坑古村-后台
server {
    listen       443 ssl;
    #listen 443 default_server;
    #listen [::]:443 default_server;
 
    ssl_certificate "/etc/nginx/conf.d/server.pem";  # ssl的.pem文件(绝对地址)
    ssl_certificate_key "/etc/nginx/conf.d/server.key";  # ssl的.key文件(绝对地址)
    ssl_session_cache shared:SSL:1m;
    ssl_session_timeout  10m;
    ssl_ciphers HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers on;
 
    root /home/zzjz/LKGC_Service;
 
    index index.html index.htm index.nginx-debian.html;
 
    server_name sfgl.zhizijuzhen.net;
 
    #location / {
    #       # First attempt to serve request as file, then
    #       # as directory, then fall back to displaying a 404.
    #       try_files $uri $uri/ /index.html;
    #   proxy_connect_timeout   300;
    #   proxy_send_timeout      600;
    #   proxy_read_timeout      600;
    #   client_max_body_size    1000m;
    #   proxy_pass  http://115.28.139.126:36500;
    #}
     
    location / {
            proxy_connect_timeout 30m;
            proxy_send_timeout 1d;
            proxy_read_timeout 1d;
            proxy_redirect off;
 
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_pass   http://115.28.139.126:36500;
    }
     
    # 开启gzip 压缩
    gzip on;
     
    # 设置压缩文件的类型  (text/html)
    gzip_types text/plain application/javascript text/css;
}

  

2、阿里云ecs服务器如何开放80端口
文档:阿里云ecs服务器如何开放80端口.note
 
3、SSL证书 -下载
【阿里云】尊敬的*********有限公司:您为域名 lkgc.zhizijuzhen.net 购买的SSL证书已签发成功,现可前往证书控制台https://yundun.console.aliyun.com/?p=cas 下载并安装至Web服务器或一键部署到阿里云云产品,详情可参考https://help.aliyun.com/document_detail/98575.html
 
4、小程序配置域名

 

 

 

posted @   冰冰_六月  阅读(130)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示