GeoIP On Nginx

himesh nginx-forum at
Mon Nov 23 11:19:08 MSK 2009

Hi guys,

 Iam trying to set up geoip functionality on nginx, I believe it works only with Nginx 0.8 not earlier.

I was using GeoIP with Apache to allow access to Only US IPs with the following config...


Deny from all
Allow from env=AllowCountry

How can i achieve the same on Nginx. 

Thank You

Posted at Nginx Forum:,24927,24927#msg-24927

More information about the nginx mailing list