I installed libapache2-mod-geoip Added the following to my apache directives in the OPTIONs tab under websites: Code: #Block Certain Countries (with mod_geoip2) <IfModule mod_geoip.c> GeoIPEnable On GeoIPDBFile /usr/share/GeoIP/GeoIP.dat SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE RU BlockCountry SetEnvIf GEOIP_COUNTRY_CODE BR BlockCountry # ... place more countries here </IfModule> They I tried adding this after this to /usr/local/ispconfig/server/conf/vhost.conf.master: Code: <Directory /> Deny from env=BlockCountry </Directory> But there are many places it could exist. When I put it in, it give a FORBIDDEN error to everyone. Where is the right place to insert it??
/etc/apache2/mods-enabled/geoip.conf Does this exist? <IfModule mod_geoip.c> GeoIPEnable On GeoIPDBFile /usr/share/GeoIP/GeoIP.dat GeoIPDBFile /usr/share/GeoIP/GeoIP.dat MemoryCache GeoIPDBFile /usr/share/GeoIP/GeoIP.dat CheckCache GeoIPScanProxyHeaders On </IfModule> I'm also assuming youve restarted apache2
Just a thought, is anything posted to the apache error log for that website? Or is it just a case of it saying the plugin is unknown.