Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Get Selected backend info (1 reply)

$
0
0
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

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>