Passing $geoip variables ( $geoip_city_country_code ) via proxy_set_header not working

Robert Suh roberts at
Tue Oct 18 16:53:01 UTC 2011

Thank you Igor, a colleague was able to find a forum posting about the realip module.

Using the realip module we were able to test the geoip variables passing via proxy_set_header.

It works as expected now.

Thanks again,

-----Original Message-----
From: nginx-bounces at [mailto:nginx-bounces at] On Behalf Of Igor Sysoev
Sent: Monday, October 17, 2011 10:49 PM
To: nginx at
Subject: Re: Passing $geoip variables ( $geoip_city_country_code ) via proxy_set_header not working

On Mon, Oct 17, 2011 at 06:40:35PM -0700, Robert Suh wrote:
> Hello,
> Any ideas?

I believe, GeoIP returns empty string for 172.16.x networks, and nginx
does tno pass header field with no value.

Igor Sysoev

nginx mailing list
nginx at

More information about the nginx mailing list