Nginx配置80和443端口在同一server段时不要这样设置:
listen 80;
listen 443;
ssl on;
应该在443端口后添加ssl:
listen 80;
listen 443 ssl;
有时后端PHP要判断HTTPS:
fastcgi_param HTTPS $https if_not_empty;
标签:none
发布时间:December 6, 2014 // 分类:Nginx // No Comments
Nginx配置80和443端口在同一server段时不要这样设置:
listen 80;
listen 443;
ssl on;
应该在443端口后添加ssl:
listen 80;
listen 443 ssl;
有时后端PHP要判断HTTPS:
fastcgi_param HTTPS $https if_not_empty;
标签:none