Upload module only on specific http verbs #34

Open
mvrhov opened this Issue May 15, 2012 · 1 comment

Projects

None yet

2 participants

@mvrhov
mvrhov commented May 15, 2012

Would it be possible, that the upload module would respond only to certain http verbs like PUT, POST and pass the data on unsupported verbs to a custom backend.

Our API is RESTfull, and because of that we'd like to have the same uri for download/upload, but with different http verb. We looked at the code a bit and it seems that its not possible to do so because upload module is registered as content handler. Adding try_files into the same section doesn't work because try_files takes precedence.

@wxianfeng

hi
i do like this:
if ($request_method != GET ) { proxy_pass http://unicorn_server; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment