腾讯云
域名解析
- 腾讯云
- 阿里云,因为域名是在阿里云买的
]
下载到本地
上传到服务器
nginx配置
nginx.conf
return 302 https://$server_name$request_uri;
/etc/nginx/conf.d/default.conf
- 默认 https://pengyongjie.top/
- 重定向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;
}
}
重启nginx
killall nginx
nginx
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。