Nginx设置支持https请求(阿里云服务器)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/203fd6197d896f6f6d655874be0c8e33.png)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/a99244034795550b4442a02a317623e0.png)
server {
listen 443;
server_name www.httpstest.com;
ssl on;
root html;
index index.html index.htm;
#这里的.pem/.key文件替换成自己对应的文件名
ssl_certificate cert/xxxxx.pem;
ssl_certificate_key cert/xxxx.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location / {
#代理的目标地址
proxy_pass http://127.0.0.1:10443;
}
}
转载链接
https://blog.csdn.net/qq_40917843/article/details/81215325