i use nginx for load banlancing ,there are several servers behind nginx. how to konw the server which the request forward to ? Can I add the ip of the server that request forward to into header of reponse? if can ,how to do?
You can refer to nginx manual upstream section . $upstream_addr variable may be what you want.
And another method is to add trace code to the request. You can refer to this 3-rd module .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.