forked from pool/apache2-mod_maxminddb
Petr Gajdos
f77916cc75
Initial release 1.1.0 The old mod_geoip module will stop working 2019 because maxmind will no longer update the old database format. OBS-URL: https://build.opensuse.org/request/show/610116 OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_maxminddb?expand=0&rev=1
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
<IfModule mod_maxminddb.c>
|
|
MaxMindDBEnable On
|
|
|
|
# ###
|
|
# specify database locations
|
|
#
|
|
MaxMindDBFile COUNTRY_DB /var/lib/GeoIP/GeoLite2-Country.mmdb
|
|
MaxMindDBFile CITY_DB /var/lib/GeoIP/GeoLite2-City.mmdb
|
|
|
|
# ###
|
|
# assign the lookup result to an environment variable
|
|
#
|
|
MaxMindDBEnv COUNTRY_CODE COUNTRY_DB/country/iso_code
|
|
MaxMindDBEnv REGION_CODE CITY_DB/subdivisions/0/iso_code
|
|
|
|
# ###
|
|
# ASN Database
|
|
#
|
|
#MaxMindDBFile ASN_DB /var/lib/GeoIP/GeoLite2-ASN.mmdb
|
|
#
|
|
#MaxMindDBEnv MM_ASN ASN_DB/autonomous_system_number
|
|
#MaxMindDBEnv MM_ASORG ASN_DB/autonomous_system_organization
|
|
|
|
# ###
|
|
# City Database
|
|
#
|
|
#MaxMindDBEnv MM_COUNTRY_CODE CITY_DB/country/iso_code
|
|
#MaxMindDBEnv MM_COUNTRY_NAME CITY_DB/country/names/en
|
|
#MaxMindDBEnv MM_CITY_NAME CITY_DB/city/names/en
|
|
#MaxMindDBEnv MM_LONGITUDE CITY_DB/location/longitude
|
|
#MaxMindDBEnv MM_LATITUDE CITY_DB/location/latitude
|
|
|
|
# ###
|
|
# Connection-Type Database
|
|
#
|
|
#MaxMindDBFile CONNECTION_TYPE_DB /var/lib/GeoIP/GeoIP2-Connection-Type.mmdb
|
|
#MaxMindDBEnv MM_CONNECTION_TYPE CONNECTION_TYPE_DB/connection_type
|
|
|
|
# ###
|
|
# Domain Database
|
|
#
|
|
#MaxMindDBFile DOMAIN_DB /var/lib/GeoIP/GeoIP2-Domain.mmdb
|
|
#MaxMindDBEnv MM_DOMAIN DOMAIN_DB/domain
|
|
|
|
# ###
|
|
# ISP Database
|
|
#
|
|
#MaxMindDBFile ISP_DB /var/lib/GeoIP/GeoIP2-ISP.mmdb
|
|
#
|
|
#MaxMindDBEnv MM_ASN ISP_DB/autonomous_system_number
|
|
#MaxMindDBEnv MM_ASORG ISP_DB/autonomous_system_organization
|
|
#MaxMindDBEnv MM_ISP ISP_DB/isp
|
|
#MaxMindDBEnv MM_ORG ISP_DB/organization
|
|
</IfModule>
|