location ^~/H5app {
set $uid "$http_x_tif_uid";
set $h5_flag "0";
if ( $args ~ key= ) {
set $h5_flag "1";
}
set $union_char "&";
if ($is_args = "") {
set $union_char "?";
}
if ( $h5_flag = "0" ){
return 301 "https://smartgate.baoan.gov.cn/kshfwpt$request_uri${union_char}key=${uid}";
}
alias /opt/ces/H5app/;
index index.html index.htm;
}
ngixn配置
于 2022-01-20 11:17:20 首次发布