I hope you can help me with a little but tricky nginx problem:
I want to configure a dynamic location-block like this:
location /test1/* {
proxy_pass destination.com/api/*;
proxy_buffering off;
}
If the URL is .../test1/folder1
the request should be passed to destination.com/api/folder1
I've tried it already with the variable $request_uri
proxy_pass destination.com/api/$request_uri;
- it didn't work for me.
EDIT: The site "/test1/" itself should NOT be redirected - only the part after "/test1/". How is that possible?
UPDATE 11.02.2016: Still no solution :(
Thanks for your help/answers!