1 # Module for IP Based Geographic Lookups
3 # Documentation: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModMaxMindDB
5 # mod_maxminddb is a module for fast ip/location lookups. It uses MaxMind
6 # GeoIP2 databases. If the IP was found in the database, the module sets the
7 # appropriate environment variables to the request, thus making this
8 # information available to other modules/fcgi.
10 # Redirecting based on GeoIP2 data can be performed inside lighttpd using
11 # mod_magnet or using backend CGI, FastCGI, SCGI, etc.
13 # mod_maxminddb consumes MaxMind GeoIP2 databases. This is the successor to
14 # GeoIP Legacy databases. GeoIP Legacy databases were discontinued 2 Jan 2019
15 # (https://dev.maxmind.com/geoip/legacy/release-notes/) and mod_geoip is now
23 #maxminddb.activate = "enable"
25 #maxminddb.db = "/path/to/the/GeoIP2/database.mmdb"
27 # list of environment variables to set and associated lookup keys in GeoIP2 .mmdb.
29 # "GEOIP_COUNTRY_CODE" => "country/iso_code",
30 # "GEOIP_COUNTRY_NAME" => "country/names/en",
31 # "GEOIP_CITY_NAME" => "city/names/en",
32 # "GEOIP_CITY_LATITUDE" => "location/latitude",
33 # "GEOIP_CITY_LONGITUDE" => "location/longitude",