MaxMind DB module - MaxMindDBModule
Enable or disable loading of the Apache mod_maxminddb geolocation module. Turning this off will disable all policy entries.
Default: Off
The mod_maxmind module package name is mod_maxminddb
. To enable/disable the module in Apache:
Edit the file /etc/httpd/conf.d/maxminddb.conf
and comment out the LoadModule line to disable the extension:
#LoadModule maxminddb_module modules/mod_maxminddb.so
<IfModule maxminddb_module>
MaxMindDBFile CITY_DB /usr/share/GeoIP/GeoLite2-City.mmdb
MaxMindDBEnv MM_CONTINENT_CODE CITY_DB/continent/code
MaxMindDBEnv MM_CONTINENT_NAME_EN CITY_DB/continent/names/en
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
MaxMindDBNetworkEnv CITY_DB CITY_DB_NETWORK
MaxMindDBFile ASN_DB /usr/share/GeoIP/GeoLite2-ASN.mmdb
MaxMindDBEnv MM_ASN ASN_DB/autonomous_system_number
MaxMindDBEnv MM_ASORG ASN_DB/autonomous_system_organization
MaxMindDBNetworkEnv ASN_DB ASN_DB_NETWORK
</IfModule>
Restart Apache
systemctl restart httpd
On Debian/Ubuntu the mod_maxmind module package name is libapache2-mod-maxminddb
. To enable the module in Apache:
a2enmod maxminddb
To disable the module in Apache:
a2dismod maxminddb
Restart Apache
systemctl restart apache2