server {
listen 80;
server_name 172.16.201.1;
charset UTF-8;
access_log logs/.access.log main;
error_log logs/.error.log warn;
location /business/api {
if ( $http_x_forwarded_for ~ 106.14.94.192,61.50.105.10 ) {
rewrite ^/business/(.*)$ /$1 break;
proxy_pass http://pool_businessapi.sqbj.com_tomcat_hd;
}
proxy_pass http://pool_businessapi.sqbj.com_tomcat/api;
}
location /common/api {
if ( $http_x_forwarded_for ~ 106.14.94.192,61.50.105.10 ) {
rewrite ^/common/(.*)$ /$1 break;
proxy_pass http://pool_businessapi.sqbj.com_tomcat_hd;
}
proxy_pass http://pool_businessapi.sqbj.com_tomcat/api;
}
location /pay/api {
if ( $http_x_forwarded_for ~ 106.14.94.192,61.50.105.10 ) {
rewrite ^/pay/(.*)$ /$1 break;
proxy_pass http://pool_payapi.sqbj.com_tomcat_hd;
}
proxy_pass http://pool_payapi.sqbj.com_tomcat/api;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
~
~nginx 灰度配置文件
原创
©著作权归作者所有:来自51CTO博客作者mstools的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:nginx 配置自签名证书
下一篇:一次磁盘满的系统故障
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
nginx配置文件还原 nginx配置文件修改
步骤一:vi nginx.conf配置文件,参考本博文的最下面总结,自行去设置 最后nginx.conf内容为 步骤二:每次修改了nginx.conf配置文件后,都要
nginx配置文件还原 运维 后端 epoll nginx

















