使用nginx中的map做生产与测试分离时,一些注意地方
http { ... #解决出现could not be resolved resolver 8.8.8.8; #解决下滑线不能使用问题 underscores_in_headers on; #当请求中 header有自定义参数app_version时,进行判断要使用哪个域名 #我这里对版本进行判断 map $http_app_version $app_version_upstream_api { default api.xxxxx.com;.
原创
2020-10-28 16:38:02 ·
288 阅读 ·
0 评论