1.1 80号端口监听跳转
listen 80;
server_name localhost;
rewrite ^(.*)$ https://$host$1 permanent; ## 跳转
1.2 ssl配置
listen 443;
server_name localhost;
ssl on;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
标签:Load,ssl,server,Nginx,跳转,80,listen From: https://www.cnblogs.com/tobycold/p/17765240.html新版的nginx好像不支持
ssl on;
这种写法了,我第一台服务器部署是这种,第二台是直接在listen 443 ssl;
后面直接加ssl