Welcome! Log In Create A New Profile

Advanced

Re: nginx and GeoLite2

Ruslan Ermilov
October 22, 2013 03:38AM
On Mon, Oct 21, 2013 at 09:53:42PM +0400, Maxim Dounin wrote:
> On Mon, Oct 21, 2013 at 07:51:23PM +0300, wishmaster wrote:
>
> >
> > Hi,
> >
> > --- Original message ---
> > From: "Maxim Dounin" <mdounin@mdounin.ru>
> > Date: 21 October 2013, 16:13:01
> >
> >
> > > Hello!
> > >
> > > On Mon, Oct 21, 2013 at 12:38:30PM +0300, wishmaster wrote:
> > >
> > > > Hi
> > > > I am planning to use GeoLite with nginx. On the MaxMind website there is an announcement:
> > > >
> > > > Announcement
> > > > Free access to the latest in IP geolocation databases is now available in our GeoLite2 Databases
> > > >
> > > > I've used this db but nginx returned the error. Is it possible to use GeoLite2?
> > >
> > > GeoLite2 databases use different format and different libraries
> > > are needed to access them. They are new and not supported by
> > > nginx.
> > >
> > > Use GeoLite databases instead (without "2"). Or use a CSV
> > > version, a perl script to convert CSV files from MaxMind to nginx
> > > ngx_http_geo_module configuration is in contrib.
> > >
> > Unfortunately, v2 of this db is not shipped in CSV format. Binary format only.
> > See http://dev.maxmind.com/geoip/geoip2/geolite2/
>
> As far as I can tell, the only difference between GeoLite and
> GeoLite2 is format.
>
> At least the http://www.maxmind.com/en/opensource page makes me
> think so, as a link to the GeoLite2 page annotated as "(New
> format)".

v2 databases require access via v2 API:
https://github.com/maxmind/libmaxminddb/blob/master/doc/libmaxminddb.md

http://dev.maxmind.com/geoip/geoip2/whats-new-in-geoip2/
http://dev.maxmind.com/geoip/geoip2/geolite2/

> > Max, are you planning to add support of GeoLite2 in nginx in nearest future?
>
> No.

I'd expand on this: not until the new C API is released.
(Currently, it's declared beta and subject to change.)

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx and GeoLite2

artem October 21, 2013 05:40AM

Re: nginx and GeoLite2

Maxim Dounin October 21, 2013 09:14AM

Re: nginx and GeoLite2

Rainer Duffner October 21, 2013 09:58AM

Re[2]: nginx and GeoLite2

artem October 21, 2013 12:52PM

Re: nginx and GeoLite2

Maxim Dounin October 21, 2013 01:54PM

Re: nginx and GeoLite2

Ruslan Ermilov October 22, 2013 03:38AM

Re: nginx and GeoLite2

leev April 27, 2014 08:25AM

Re: nginx and GeoLite2

hdezela June 29, 2014 02:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
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