Welcome! Log In Create A New Profile

Advanced

Re: Change HTTP method of Sub request

Maxim Dounin
March 19, 2010 03:38AM
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@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Change HTTP method of Sub request

W. Andrew Loe III March 18, 2010 09:28PM

Re: Change HTTP method of Sub request

agentzh March 19, 2010 03:08AM

Re: Change HTTP method of Sub request

agentzh March 19, 2010 03:08AM

Re: Change HTTP method of Sub request

Maxim Dounin March 19, 2010 03:38AM

Re: Change HTTP method of Sub request

W. Andrew Loe III March 19, 2010 01:06PM

Re: Change HTTP method of Sub request

Maxim Dounin March 19, 2010 01:34PM

Re: Change HTTP method of Sub request

W. Andrew Loe III March 19, 2010 01:48PM

Re: Change HTTP method of Sub request

Maxim Dounin March 19, 2010 03:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 213
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready