Howto set geoip_country for IPv4 and IPv6 databases?

Ruslan Ermilov ru at nginx.com
Tue Apr 30 21:17:09 UTC 2013


On Tue, Apr 30, 2013 at 09:03:20AM -0400, Rancor wrote:
> Hey,
> 
> thanks for your reply. The packages of dotdeb.org are build with IPv6
> support. When i'm using:
> 
> nginx -V
> 
> the output contains:
> 
> --with-ipv6
> 
> Additional netstat -npl shows this output:
> 
> tcp6       0      0 :::80                   :::*                    LISTEN  
>    4942/nginx      
> tcp6       0      0 :::443                  :::*                    LISTEN  
>    4942/nginx 
> 
> so this NginX should run with IPv6?

nginx detects the IPv6 support in libgeoip by trying to compile
the following code snippet:

#include <stdio.h>
#include <GeoIP.h>

int
main(void)
{
        printf("%d\n", GEOIP_CITY_EDITION_REV0_V6);
        return (0);
}

Does it compile OK on your system?



More information about the nginx mailing list