<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello Everyone,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Have migrated everything over to nginx / fastcgi
from apache / sapi mod_cgi and so far everything looks really good.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I now need to implement what might be the only
component that slows things down for us - geoip.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>We've been using MaxMind on Apache to block A1
(Anon Proxy) / A2 (Sat Providers) IP ranges and this was fairly trivial using
.htaccess. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>With nginx we need to be blocked from some
parts of several sites.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>For example </FONT></DIV>
<DIV><FONT face=Arial size=2>Site 1: /classifieds/</FONT></DIV>
<DIV><FONT face=Arial size=2>Site 2: /jobs/</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>From <A
href="http://wiki.codemongers.com/NginxHttpGeoModule">http://wiki.codemongers.com/NginxHttpGeoModule</A> I
can see I need to do the following, after having converted the MaxMind CSV file
to the appropriate format.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>geo $country {</FONT></DIV>
<DIV><FONT face=Arial size=2> include
/site/config/geoip.ngx;</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My question:</FONT><FONT face=Arial
size=2> How do I now block AI and A2 from /classifieds/ and /jobs/?
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Shri</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>