Mod GeoIp Help Please?


#1

Hello Everyone,

Have migrated everything over to nginx / fastcgi from apache / sapi
mod_cgi and so far everything looks really good.

I now need to implement what might be the only component that slows
things down for us - geoip.

We’ve been using MaxMind on Apache to block A1 (Anon Proxy) / A2 (Sat
Providers) IP ranges and this was fairly trivial using .htaccess.

With nginx we need to be blocked from some parts of several sites.

For example
Site 1: /classifieds/
Site 2: /jobs/

From http://wiki.codemongers.com/NginxHttpGeoModule I can see I need to
do the following, after having converted the MaxMind CSV file to the
appropriate format.

geo $country {
include /site/config/geoip.ngx;
}

My question: How do I now block AI and A2 from /classifieds/ and /jobs/?

Thanks!

Shri