]> git.pld-linux.org Git - packages/lighttpd.git/blame - mod_maxminddb.conf
build and package maxminddb
[packages/lighttpd.git] / mod_maxminddb.conf
CommitLineData
9c3e83dc
ER
1# Module for IP Based Geographic Lookups
2#
3# Documentation: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModMaxMindDB
4#
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.
9#
10# Redirecting based on GeoIP2 data can be performed inside lighttpd using
11# mod_magnet or using backend CGI, FastCGI, SCGI, etc.
12#
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
16# deprecated.
17
18server.modules += (
19 "mod_maxminddb"
20)
21
22# default: "disable"
23#maxminddb.activate = "enable"
24
25#maxminddb.db = "/path/to/the/GeoIP2/database.mmdb"
26
27# list of environment variables to set and associated lookup keys in GeoIP2 .mmdb.
28#maxminddb.env = (
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",
34#)
This page took 0.128721 seconds and 4 git commands to generate.