GeoIP module questions

Maxim Dounin mdounin at
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 
> this:
> 	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/ 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