Welcome! Log In Create A New Profile

Advanced

unknown directive "geoip_country"

apn
April 27, 2016 11:18AM
Hi,

I just upgraded nginx on my FreeBSD 10.3 server with the latest version provided by an up2date port tree, i.e. nginx/1.10.0.

This version seems to not recognize the directive geoip_country anymore although it was compiled with the GeoIP module successfully.

Can someone advise ?

Thanks,
a.

# uname -a
FreeBSD icecube.pnzone.net 10.3-RELEASE FreeBSD 10.3-RELEASE #15 r297699: Fri Apr 8 11:34:28 CEST 2016 root@icecube.pnzone.net:/usr/obj/usr/src/sys/ICE3K amd64

# nginx -V
nginx version: nginx/1.10.0
built with OpenSSL 1.0.2g 1 Mar 2016
TLS SNI support enabled
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --modules-path=/usr/local/etc/nginx/modules --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --with-ipv6 --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_geoip_module=dynamic --with-http_slice_module --with-http_stub_status_module --with-pcre --with-http_v2_module --with-stream=dynamic --with-stream_ssl_module --with-http_ssl_module

# service nginx configtest
Performing sanity check on nginx configuration:
nginx: [emerg] unknown directive "geoip_country" in /usr/local/etc/nginx/conf.d/01_pnzone_SSL.conf:1
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed

# head -n1 /usr/local/etc/nginx/conf.d/01_pnzone_SSL.conf
geoip_country /usr/local/share/GeoIP/GeoIPv6.dat;
Subject Author Posted

unknown directive "geoip_country"

apn April 27, 2016 11:18AM

Re: unknown directive "geoip_country"

apn April 27, 2016 06:15PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready