$scheme 是当前访问的协议,使用它可以将 http 跳转到 https;
if ($scheme = http) { rewrite ^(.*)$ https://$host$1 permanent; }
微信小程序
微信扫一扫体验
微信公众账号
微信扫一扫加关注