nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block

1、修改nginx.conf后,重启时报错

 

 2、错误原因

如果location或if中用到了正则,则不能再转发除ip:port外的路径请求

posted @ 2020-09-29 17:06  蓝色土耳其  阅读(11121)  评论(0编辑  收藏  举报