On Tue, Apr 30, 2013 at 06:14:54AM -0400, Rancor wrote:
geoip_country /etc/nginx/GeoIP.dat;
Any hints what’s wrong here? Thanks in advance for a reply.
This happens if nginx is built without IPv6 support:
$ nginx -p . -c x.conf -t
nginx: [emerg] invalid GeoIP database “GeoIPv6.dat” type:12 in
./x.conf:9
nginx: configuration file ./x.conf test failed
$ sed -ne9p x.conf
geoip_country GeoIPv6.dat;
If OTOH nginx is built with proper IPv6 support:
$ nginx -p . -c x.conf -t
nginx: the configuration file ./x.conf syntax is ok
nginx: configuration file ./x.conf test is successful
i’m trying to get this to work with the current NginX package 1.4.0 from dotdeb.org (using --with-ipv6) on a debian squeeze system. When
downloading
the GeoIP ipv6 binary from:
Seems that the libgeoip1 in debian squeeze in version
1.4.7~beta6+dfsg-1 doesn’t support this. Will test this again when
wheezy is released at the next weekend.
just want to let you know that this is now working on debian wheezy
with libgeoip1 version 1.4.8+dfsg-3
thanks again for your reply. The code above doesn’t compile on my
system:
test.c: In function ‘main’:
test.c:7: error: ‘GEOIP_CITY_EDITION_REV0_V6’ undeclared (first use in
this
function)
test.c:7: error: (Each undeclared identifier is reported only once
test.c:7: error: for each function it appears in.)
Seems that the libgeoip1 in debian squeeze in version 1.4.7~beta6+dfsg-1
doesn’t support this. Will test this again when wheezy is released at
the
next weekend.
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.