I have an nginx instance set up behind multiple load balancing proxies, and I am using real_ip
to get the clients IP address in remote_addr for processing by my Python application.
However in my logs I would like to log the proxy server that actually made the request, but $remote_addr
has now been overwritten, and I can't find anything that says a copy of it is made.
How would I be able to accomplish this?