nginx http跳转https

if ($scheme = http) {
rewrite ^(.*)$ https://$host$1 permanent;
}

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注