nginx: [emerg] “proxy_pass“ cannot have URI part in location given by regular expression, or inside

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 in /etc/nginx/nginx.conf:63

原因是location使用了正则表达式后
proxy_pass后面部分不能有斜杠
例如:
错误的:

proxy_pass http://127.0.0.1/

正确的:

proxy_pass http://127.0.0.1
上一篇:python-函数装饰器


下一篇:kafka listeners 和 advertised.listeners 的区别及应用