httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Prindeville <philipp_s...@redfish-solutions.com>
Subject Re: Making mod_authz_host less opaque
Date Thu, 14 Oct 2010 03:37:55 GMT
  On 10/13/10 5:34 PM, Guenter Knauf wrote:
> Am 13.10.2010 23:43, schrieb Philip Prindeville:
>> I recently tried to use mod_setenvif and mod_geoip to block access from
>> countries rife with hackers.
>>
>> I wasn't able to get it to work (see my posting on users).
> works for me:
>
> # Configuration for mod_geoip
> <IfModule mod_geoip.c>
>     GeoIPEnable On
>     GeoIPDBFile "/var/lib/GeoIP/GeoIPCity.dat"
> <Location />
>         SetEnvIf GEOIP_COUNTRY_CODE US BlockCountry
>         SetEnvIf GEOIP_COUNTRY_CODE DE BlockCountry
>         Deny from env=BlockCountry
> </Location>
> </IfModule>
> # End of mod_geoip.
>
> Gün.
>
>

Yeah, Location worked, but I couldn't get <Directory "/var/www/html"> to work.

No idea why.  Still begs the question: do we need a better method to debug such issues?

-Philip


Mime
View raw message