Nginx位置正则表达式不适用于代理通行证
我正在尝试使这2个位置指令在Nginx中起作用,但是在引导Nginx时却出现了一些错误。 location ~ ^/smx/(test|production) { proxy_pass http://localhost:8181/cxf; } location ~ ^/es/(test|production) { proxy_pass http://localhost:9200/; } 这是我收到的错误: 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 听起来有人熟悉吗?我在这里想念什么?