网上搜到这样一句:
rewrite ^(.*)$ https://$host$1 permanent;
但是出现了循环重定向
因为用的是 xinnet 的虚拟主机,rewrite 不能指定写在 80 端口下,所以导致 https 也重定向
哪位大佬能帮忙写一个,判断 scheme 是 http://时,重定向到 https://