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