I'm building an api server and need
location /api {
proxy_pass http://upstream/...
}
for PUT requests only, another for DELETE requests.
proxy_pass seems to be disallowed inside any conditional directives.
Suggestions on the simplest way to do this?
d.r