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: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready