Welcome! Log In Create A New Profile

Advanced

Tweak proxy_next_upstream based on HTTP method

Branden Visser
July 05, 2013 08:34AM
Hi all,

I was wondering if there is a way to have different proxy_* rules depending
on the HTTP method? My use case is that I want to be a little more
conservative about what requests I retry for POST requests, as they have an
undesired impact if tried twice after a "false" timeout.

e.g., for GET, I may want to try another when I timeout to the back-end
server after 5s, whereas for a POST request, I may want to simply fail the
POST request after 15s.

I can work around this by doing specific location blocks for each URL, but
having separate defaults based on HTTP method should be easier to maintain.

Thanks,
Branden
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Tweak proxy_next_upstream based on HTTP method

Branden Visser July 05, 2013 08:34AM

Re: Tweak proxy_next_upstream based on HTTP method

Maxim Dounin July 05, 2013 09:04AM

Re: Tweak proxy_next_upstream based on HTTP method

Branden Visser July 05, 2013 09:28AM

Re: Tweak proxy_next_upstream based on HTTP method

Branden Visser July 05, 2013 09:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 279
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