Welcome! Log In Create A New Profile

Advanced

Get Selected backend info

Aleem B
September 02, 2014 03:52PM
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.

In Varnish I can do this via:
set req.http.X-Backend = req.backend

In HAProxy I can do this via:
http-send-name-header X-Backend

However, I am stumped with Nginx. I imagine I could work around it by
redirecting to the same server or some other trickery (not sure if that's a
reasonable approach--what would the config look like in any case here?).

Any other tips or suggestion are welcome.

Thanks,
Aleem
_______________________________________________
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: 109
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready