GeoIP module questions
Maxim Dounin
mdounin at mdounin.ru
Wed Sep 26 01:22:05 MSD 2007
Hello!
On Tue, 25 Sep 2007, Ezra Zygmuntowicz wrote:
> Hey there nginxers-
>
> Is there a way to use a geoip database with nginx instead of
> explicitely listing out all the IP ranges in the nginx.conf? Something like
> this:
>
> http://www.maxmind.com/app/country
>
> There is a modeul for apache and lighttpd for this type of stuff. Any
> hints or help here? Or shoudl I just script something up to auto generate the
> geoip config for nginx from one of these databases?
Hint 1:
You may use contrib/geo2nginx.pl script to convert maxmind's geoip
database into nginx config format.
Hint 2:
You may use "include" directive to include additional file into nginx.conf
(e.g. your converted geoip database).
Maxim Dounin
More information about the nginx
mailing list