Welcome! Log In Create A New Profile

Advanced

GeoIP On Nginx

November 23, 2009 03:19AM
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

<Location / >
Deny from all
Allow from env=AllowCountry
</Location>


How can i achieve the same on Nginx.


Thank You
Subject Author Posted

GeoIP On Nginx

himesh November 23, 2009 03:19AM

Re: GeoIP On Nginx

Igor Sysoev November 23, 2009 03:52AM

Re: GeoIP On Nginx

himesh November 23, 2009 05:16AM

Re: GeoIP On Nginx

Igor Sysoev November 23, 2009 05:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready