Change HTTP method of Sub request
Maxim Dounin
mdounin at mdounin.ru
Fri Mar 19 10:33:19 MSK 2010
Hello!
On Thu, Mar 18, 2010 at 06:24:30PM -0700, W. Andrew Loe III wrote:
> I have a Rails app that receives a POST and I would like to
> X-Accel-Redirect a file back to the client, but the fileserver is
> receiving a POST. Can I rewrite the HTTP method internally? I cannot
> find the documentation on this.
location /storage/ {
proxy_pass http://storage-backend...;
proxy_pass_method GET;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
}
Maxim Dounin
More information about the nginx
mailing list