代码如下:
if ($server_port ~ "^80$"){
set $rule_0 1$rule_0;
}
if ($rule_0 = "1"){
rewrite /(.*) https://www.biao-zhun.cn/$1 permanent; #更改为要跳转的网址
break;