首页 > Web开发 > 详细

阿里云配置https

时间:2018-01-26 16:16:40      阅读:240      评论:0      收藏:0      [点我收藏+]

 

1,进入阿里云,点击产品与服务,找到安全 -- CA证书服务(数据安全)

技术分享图片

 

注意:这里选择symantec里面有免费的DV SSL

 

2,找到服务器的nginx,https端口号是443

server {
        listen 443; server_name mrecycle.layib.com;
        ssl on;
        root /alidata/www/huishou_node/;
        index index.html index.htm index.php;
        ssl_certificate /alidata/server/nginx/sslkey/214473678800324.pem;
        ssl_certificate_key  /alidata/server/nginx/sslkey/214473678800324.key;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
        ssl_prefer_server_ciphers on;
        location / {
                proxy_redirect off;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass http://101.200.156.65:8180;
        }

  

 

阿里云配置https

原文:https://www.cnblogs.com/xiaoxiaomengxiangjia/p/8359988.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!