Geoip issue with nginx in front of varnish and apache !

Francis Daly francis at daoine.org
Tue Jan 20 19:06:42 UTC 2015


On Tue, Jan 20, 2015 at 11:38:21PM +0500, shahzaib shahzaib wrote:

Hi there,

>     We've compile varnish with geoip module in order to cache country based
> hashes, so far varnish<-> apache structure is working fine with geoip
> module and caching requests based on countries but when we add another
> Nginx proxy layer in front of varnish i.e nginx -> varnish - apache, the
> geoip module stop tracking Country hashes and varnish shows following logs :

It sounds like you need to do whatever it takes to convince varnish's
geoip module to use the IP address in the X-Real-IP header, and not the
actual client address.

Check the varnish geoip module documentation.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list