zoukankan      html  css  js  c++  java
  • 阿里云配置https

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

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

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

    cd /alidata/server/nginx/conf/vhosts/

    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;
            }
    

      

  • 相关阅读:
    P1662 数7
    P3645 [APIO2015]雅加达的摩天楼
    P3396 哈希冲突
    P7479 至曾是英雄的您
    P7480 Reboot from Blue
    Apache Commons Collections
    ESP8266 WIFI杀手
    ESP8266 固件升级
    ESP8266 MicroPython安装与使用
    Window 安装子系统
  • 原文地址:https://www.cnblogs.com/xiaoxiaomengxiangjia/p/8359988.html
Copyright © 2011-2022 走看看