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.
— Original message —
From: “Maxim D.” [email protected]
Date: 21 October 2013, 16:13:01
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.
On Mon, Oct 21, 2013 at 07:51:23PM +0300, wishmaster wrote:
On Mon, Oct 21, 2013 at 12:38:30PM +0300, wishmaster wrote:
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.
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:
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?