set $flag 0;
if ($server_port !~ 443) {
set $flag "${flag}1";
}
if ($request_uri !~ "/poto"){
set $flag "${flag}2";
}
if ($flag = "012"){
rewrite ^(/.*)$ https://$host$1 permanent;
}

除非注明,否则均为男人乐趣网文章,转载以链接形式标明本文链接

本文链接:https://www.nanrenlequ.com/49362.html