Welcome! Log In Create A New Profile

Advanced

Re: Howto set geoip_country for IPv4 and IPv6 databases?

Bruno Prémont
January 15, 2013 03:10AM
Hi,

It should be sufficient to just list the IPv6 database (which includes
the IPv4 database as mapped addresses) tough 1.2.x branch needs
attached patch.

I don't know if Maxim has already applied it or a variant of it to
1.3.x branch.


Also search the archives for GeoIP and IPv6 support, there were a few
posts about it.


Attached patch was initially posted in
http://mailman.nginx.org/pipermail/nginx-devel/2011-June/000971.html
(though I've updated it for 1.2.2).

Regards,
Bruno

On Tue, 15 Jan 2013 05:08:15 +0100 Patrick Lists wrote:
> Hi,
>
> 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
> /etc/nginx/nginx.conf:116
>
> Thanks for any advice.
>
> Regards,
> Patrick
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Howto set geoip_country for IPv4 and IPv6 databases?

Patrick Lists January 14, 2013 11:10PM

Re: Howto set geoip_country for IPv4 and IPv6 databases?

Bruno Prémont January 15, 2013 03:10AM

Re: Howto set geoip_country for IPv4 and IPv6 databases?

Ruslan Ermilov January 15, 2013 08:38AM

Re: Howto set geoip_country for IPv4 and IPv6 databases?

Patrick Lists January 15, 2013 11:24AM

Re: Howto set geoip_country for IPv4 and IPv6 databases?

Rancor April 30, 2013 06:14AM

Re: Howto set geoip_country for IPv4 and IPv6 databases?

Ruslan Ermilov April 30, 2013 08:36AM

Re: Howto set geoip_country for IPv4 and IPv6 databases?

Rancor April 30, 2013 09:03AM

Re: Howto set geoip_country for IPv4 and IPv6 databases?

Ruslan Ermilov April 30, 2013 05:18PM

Re: Howto set geoip_country for IPv4 and IPv6 databases?

Rancor May 01, 2013 05:14AM

Re: Howto set geoip_country for IPv4 and IPv6 databases?

Rancor May 08, 2013 08:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready