Welcome! Log In Create A New Profile


Re: nginx and GeoLite2

June 29, 2014 02:17AM
leev Wrote:
> Hi,
> If you're still looking to use the GeoIP2/GeoLite2 databases, a module
> is now available at https://github.com/leev/ngx_http_geoip2_module.
> Cheers,
> Lee

I've succesfully compiled the module but can't seem to get the correct information from the database, I've followed the db structure that maxmind has and the geoip2 section in nginx.conf is this:

geoip2 /webdata/script/GeoLite2-City.mmdb {
$geoip2_data_continent_code continent code;
$geoip2_data_country_iso_code country iso_code;
$geoip2_data_subdivision_name subdivision 0 names es;
$geoip2_data_city_name city names es;
$geoip2_data_latitude location latitude;
$geoip2_data_longitude location longitude;

, I've also put the following in fastcgi_params:

fastcgi_param CONTINENT $geoip2_data_continent_code;
fastcgi_param COUNTRY $geoip2_data_country_iso_code;
fastcgi_param REGION $geoip2_data_subdivision_name;
fastcgi_param CITY $geoip2_data_city_name;
fastcgi_param LATITUDE $geoip2_data_latitude;
fastcgi_param LONGITUDE $geoip2_data_longitude;

...but the only variables I'm getting are CONTINENT, COUNTRY and CITY.

REGION, LATITUDE and LONGITUDE are not showing up...what do I need to do to get those variables shown?
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: 242
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