nginx 配置的公共配置局部抽取进去
在 nginx.conf 同文件夹下新建文件 common_rules.conf
# proxy_pass http://27.175.67.297:8000;
proxy_pass https://wgcent.store.cn;
间接在 nginx.conf 中以 include 应用
location /wcg/api/order/paymentRequest {
rewrite .* /wc/api/orider/tRequest break;
include common_rules.conf;
}
location /wcg/api/order/queryPaymentStatus {
rewrite .* /wc/api/order/querStatus break;
include common_rules.conf;
}