Change HTTP method of Sub request

W. Andrew Loe III andrew at andrewloe.com
Fri Mar 19 20:02:31 MSK 2010


proxy_pass_method does not exist in the 0.7 or 0.8 branches. There is
proxy_method but I believe it simply allows more than the standard 4
verbs to be proxied
(http://wiki.nginx.org/NginxHttpProxyModule#proxy_method).

On Fri, Mar 19, 2010 at 12:33 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> 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
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



More information about the nginx mailing list