我有一个 location
block 为
location @test{
proxy_pass http://localhost:5000/1;
}
但 nginx 提示
"proxy_pass cannot have URI part in location given by regular expression..."
有谁知道可能出了什么问题?
上传完成后,我尝试查询 localhost:5000/1:
location /upload_attachment {
upload_pass @test;
upload_store /tmp;
...
}
请您参考如下方法:
尝试省略“/”(URI 部分)并检查。
location @test{
proxy_pass http://localhost:5000;
}