相关疑难解决方法(0)

nginx'proxy_pass'在位置上不能有URI部分?

我有个location街区

location @test{
    proxy_pass http://localhost:5000/1;
}
Run Code Online (Sandbox Code Playgroud)

但是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;
    ...
}
Run Code Online (Sandbox Code Playgroud)

nginx

30
推荐指数
3
解决办法
5万
查看次数

标签 统计

nginx ×1