2

I have 2 nginx webservers with a nginx load balancer spliting the load.
I am trying to log to which webserver was a request sent into the log file /var/log/nginx/access.log but I can't find such option in ngx_http_log_module docs.

Any idea if this is possible and how to do it?

1 Answer 1

3

Variable $upstream_addr contains IP:port pairs for all visited upstreams.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .