GeoIP On Nginx

himesh nginx-forum at nginx.us
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...

SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry


Deny from all
Allow from env=AllowCountry



How can i achieve the same on Nginx. 


Thank You

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,24927,24927#msg-24927





More information about the nginx mailing list