腾讯云

clipboard.png

clipboard.png
域名解析

  1. 腾讯云
  2. 阿里云,因为域名是在阿里云买的

clipboard.png
]

下载到本地

clipboard.png

clipboard.png

上传到服务器

clipboard.png

nginx配置

nginx.conf
return 302 https://$server_name$request_uri;

clipboard.png

/etc/nginx/conf.d/default.conf
  1. 默认 https://pengyongjie.top/
  2. 重定向pengyongjie.top到https://pengyongjie.top/
server {
        listen 443;
        server_name www.pengyongjie.top; #填写绑定证书的域名
        ssl on;
        ssl_certificate /etc/nginx/cert/1_www.pengyongjie.top_bundle.crt;
        ssl_certificate_key /etc/nginx/cert/2_www.pengyongjie.top.key;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配置
        ssl_prefer_server_ciphers on;
    location / {
          root /usr/share/nginx/html/pc;
          if ($http_user_agent ~* '(Android|webOS|iPhone|iPod|BlackBerry)') {
            root /usr/share/nginx/html/mobile;
          }
          index index.html;
     }
    }

clipboard.png

重启nginx

killall nginx
nginx

clipboard.png


渣渣辉
1.3k 声望147 粉丝