Welcome! Log In Create A New Profile

Advanced

Re: Get Selected backend info

Maxim Dounin
September 02, 2014 03:56PM
Hello!

On Wed, Sep 03, 2014 at 12:50:27AM +0500, Aleem B wrote:

> Hello,
>
> I couldn't find much information other than this thread
> http://mailman.nginx.org/pipermail/nginx/2008-February/003550.html which
> is a dead-end.
>
> I would like to add the selected backend/upstream to an "X-Backend" header
> before dispatching the request to the backend.

You can't. The request is created _before_ the backend server
will be selected (and the same request may be sent to more than
one backend server due to proxy_next_upstream).

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

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

Get Selected backend info

Aleem B September 02, 2014 03:52PM

Re: Get Selected backend info

Maxim Dounin September 02, 2014 03:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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