Hi,
we may have a situation where NGINX is behind a load-balancer that
cloaks
all source-IPs with its own.
However, the original source-IP is conserved in a header.
Would it be possible to populate the geoip_country variable from that
other variable?
Best Regards,
Rainer
Hello!
On Mon, Jan 10, 2011 at 02:46:42AM +0100, [email protected] wrote:
we may have a situation where NGINX is behind a load-balancer that cloaks
all source-IPs with its own.
However, the original source-IP is conserved in a header.
Would it be possible to populate the geoip_country variable from that
other variable?
http://wiki.nginx.org/HttpRealIpModule
real_ip_from your.balancer.ip.address;
real_ip_header Header-With-Client-Ip;
Maxim D.