Howto set geoip_country for IPv4 and IPv6 databases?
bruno.premont at restena.lu
Tue Jan 15 08:08:30 UTC 2013
It should be sufficient to just list the IPv6 database (which includes
the IPv4 database as mapped addresses) tough 1.2.x branch needs
I don't know if Maxim has already applied it or a variant of it to
Also search the archives for GeoIP and IPv6 support, there were a few
posts about it.
Attached patch was initially posted in
(though I've updated it for 1.2.2).
On Tue, 15 Jan 2013 05:08:15 +0100 Patrick Lists wrote:
> Next to their IPv4 country and city database, Maxmind now also has an
> IPv6 country and city database at http://dev.maxmind.com/geoip/geolite
> Is there a way I can make geo use the IPv6 databases too?
> This does not work:
> geoip_country /etc/nginx/GeoIP.dat;
> geoip_country /etc/nginx/GeoIPv6.dat;
> geoip_city /etc/nginx/GeoLiteCity.dat;
> geoip_city /etc/nginx/GeoLiteCityv6.dat;
> Because I see this error when checking the config:
> nginx: [emerg] "geoip_country" directive is duplicate in
> Thanks for any advice.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10108 bytes
Desc: not available
More information about the nginx