---
title: 'Policy Settings'
url: 'https://docs.danami.com/juggernaut/settings/web-server/policy-settings'
markdown: 'https://docs.danami.com/juggernaut/settings/web-server/policy-settings.md'
date: '2026-09-25'
description: 'Get a MaxMind License Key The Apache mod_maxminddb geolocation module requires that the Maxmind GeoIP2 databases be installed on the server. Signup for the free license key here. Generate a license key here (When asked - Will this key be used for geoipupdate? Choose: no) Navigate to Juggernaut Fir…'
taxonomy:
  category:
    - docs
  tag:
    - maxmind
---

[](#)  [ Basics ](https://docs.danami.com/juggernaut/)     [ Settings Reference ](https://docs.danami.com/juggernaut/settings)     [ Web Server ](https://docs.danami.com/juggernaut/settings/web-server)      Policy Settings    

# Policy Settings

## Get a MaxMind License Key

1. The Apache [mod\_maxminddb](https://github.com/maxmind/mod_maxminddb) geolocation module requires that the Maxmind GeoIP2 databases be installed on the server. Signup for the free license key [here](https://www.maxmind.com/en/geolite2/signup).
2. Generate a license key [here](https://www.maxmind.com/en/accounts/current/license-key) (When asked - Will this key be used for geoipupdate? Choose: no)
3. Navigate to Juggernaut Firewall -> Settings -> Geolocation Settings and enter the license key under MaxMind license key. (It may take up to 15 minutes before MaxMind will recognize a newly created API key).
4. Press the update button to save the license key and to download the MaxMind country and ASN databases.

## Enable the Apache MaxMind DB module

1. In Plesk navigate to Tools & Settings -> General Settings -> Apache Web Server and set the **Apache restart interval** (60 seconds or more is recommended). Also make sure that **Apache graceful restart** is enabled. This will ensure that there will be minimal Apache disruptions when the Juggernaut Firewall applies any changes to the domains configuration files.
2. Navigate to Juggernaut Firewall -> Settings -> Web Server -> Policy Settings and set the MaxMind DB module radio option to "On". Press the update button apply the changes.

**MaxMind DB module** - `MaxMindDBModule`
Enable or disable loading of the Apache [mod\_maxminddb](https://github.com/maxmind/mod_maxminddb) geolocation module. Turning this off will disable all policy entries.
Default: Off

## Troubleshooting

#### AlmaLinux / CloudLinux / RHEL / Rocky Linux

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
```

#### Debian/Ubuntu

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
```

## Related Pages

- [Webmail Policy](https://docs.danami.com/juggernaut/settings/web-server/webmail-policy "Webmail Policy")
- [Policy Migrator](https://docs.danami.com/juggernaut/settings/web-server/policy-migrator "Policy Migrator")

 [ ](https://docs.danami.com/juggernaut/command-line-interface/webserver/webserver-policy-webmail) [](https://docs.danami.com/juggernaut/settings/web-server/webmail-policy)

---

## Navigation

- Parent: [Web-server](https://docs.danami.com/juggernaut/settings/web-server.md)
- Next: [Webmail Policy](https://docs.danami.com/juggernaut/settings/web-server/webmail-policy.md)
