Welcome! Log In Create A New Profile

Advanced

Re: Module: Configuring upstream params (eg fastcgi_param) per request

Maxim Dounin
June 06, 2016 09:14AM
Hello!

On Thu, Jun 02, 2016 at 12:05:17AM -0400, davidjb wrote:

> Anyone have any thoughts? Even if it's just to say "this isn't possible".

When working with multiple servers within a single upstream{}
block, nginx creates a request only once. If a server fails,
nginx will re-try the same request to a different server. So it's
not possible to supply different parameters for different servers -
because the request is already created.

If you want to send different requests, you have to use other
mechanisms available in nginx, such as error_page fallback. Then
it will be possible to create another request with different
headers / FastCGI parameters.

--
Maxim Dounin
http://nginx.org/

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

Module: Configuring upstream params (eg fastcgi_param) per request

davidjb May 17, 2016 01:06AM

Re: Module: Configuring upstream params (eg fastcgi_param) per request

davidjb June 02, 2016 12:05AM

Re: Module: Configuring upstream params (eg fastcgi_param) per request

Maxim Dounin June 06, 2016 09:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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