Get Selected backend info
aleemb at gmail.com
Tue Sep 2 19:50:27 UTC 2014
I couldn't find much information other than this thread
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:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx