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;
}
发表回复