I have a location block as
location @test{
proxy_pass http://localhost:5000/1;
}
but nginx complains that "proxy_pass cannot have URI part in location given by regular expression..." Does anyone know what might be wrong?
I'm trying to query localhost:5000/1 when an upload is complete:
location /upload_attachment {
upload_pass @test;
upload_store /tmp;
...
}
/after the1, make ithttp://localhost:5000/1/;localhost:5000but run a rewrite before it,rewrite ^ /1$1 last