Forum: NGINX Mod GeoIp Help Please?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Shri @ DevLib.Org (Guest)
on 2009-01-05 17:07
(Received via mailing list)
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 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/?


This topic is locked and can not be replied to.