GeoIP module questions
mdounin at mdounin.ru
Wed Sep 26 01:22:05 MSD 2007
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
> 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?
You may use contrib/geo2nginx.pl script to convert maxmind's geoip
database into nginx config format.
You may use "include" directive to include additional file into nginx.conf
(e.g. your converted geoip database).
More information about the nginx