0

We just upreared our web server from Apache 2.2 to 2.4 on RHEL server.

On Apache 2.4 we tried to block country by using MaxMindDB module, we followed all steps displayed on https://github.com/maxmind/mod_maxminddb#blocking-by-country but it is not working.

Here is our conf file for debug variable assign by MaxMindDB but this are not working.

<Location />
MaxMindDBEnable On
SetEnvIf CLIENTIP "(.*)" MMDB_ADDR=$1
MaxMindDBFile COUNTRY_DB /usr/share/GeoIP/GeoLite2-Country.mmdb
MaxMindDBEnv CB_COUNTRY_CODE COUNTRY_DB/country/iso_code
SetEnvIf CB_COUNTRY_CODE ^(US|CA|IN) AllowCountry
Header always set MMDB_ADDR "%{MMDB_ADDR}e"
Header always set CB_COUNTRY_CODE "%{CB_COUNTRY_CODE}e"
Header always set X-Country-Allow "%{AllowCountry}e"
</Location>

I already spend more then week to resolving but there is no any luck so it would be great if someone help me for this.

Vijay Mistry
  • 157
  • 5

0 Answers0