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?
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).
the script looks quite simple, and i tried to RTFM i.e look at the
script, but there’s no usage example, and it doesn’t look like there’s
any switches.
i tried hunting around for some similar examples, no luck.
im sure this is really simple, considering there isn’t even a usage
example, but im not very bright… i mean not a coder or perl guy…
could somebody help a brother out on this one