nginx 'proxy_pass' cannot have URI part in location?

前端 未结 3 1280
清酒与你
清酒与你 2020-12-08 07:26

I have a location block as

location @test{
    proxy_pass http://localhost:5000/1;
}

but nginx complains that \"proxy_p

3条回答
  •  忘掉有多难
    2020-12-08 07:56

    Try omitting the "/" (URI part) and check.

    location @test{
        proxy_pass http://localhost:5000;
    }
    

提交回复
热议问题