关于nginx:Nginx-操作小册

65次阅读

共计 359 个字符,预计需要花费 1 分钟才能阅读完成。

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;
}

正文完
 0