There are several nodes in between nginx and apache. It's not internet -> nginx -> apache. It's internet -> nginx -> varnish -> haproxy - > apache1 - > apache2 - > apacheN So far, everything is in the apache access logs except theby zacharyalexstern - Nginx Mailing List - English
I'd like nginx to set a header that contains the IP address of the server nginx is running on. So something like: proxy_set_header X-Nginx-IP $proxy_host; Assuming $proxy_host evaluates to the IP of the server nginx is running on.by zacharyalexstern - Nginx Mailing List - English
Ah, so, we have this line: proxy_set_header X-Real-IP $remote_addr; Is there a list of the variables similar to $remote_addr somewhere? Is $proxy_host possibly what we need?by zacharyalexstern - Nginx Mailing List - English
Currently in our setup, we are using the X-Real-IP header setting in nginx, to tell in our backend apache logs the IP address of the client. Is it possible to set up nginx to insert an arbitrary HTTP header with text of my choosing, or with it's own IP address? I'd like to set this up for the purposes of doing some easier log analysis. Thanks!by zacharyalexstern - Nginx Mailing List - English