2010/09/06 17:19:31 [emerg] 1060#0: unknown directive "geoip_country" in /usr/local/etc/nginx/nginx.conf:16

rainer at ultra-secure.de rainer at ultra-secure.de
Mon Sep 6 20:38:28 MSD 2010


Hi,

I did compile in the geo_ip module:
(rproxy <~>) 0 # strings /usr/local/sbin/nginx  |grep geo
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
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx-error.log --user=www --group=www
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-log-path=/var/log/nginx-access.log --with-http_geoip_module
--with-http_ssl_module --with-http_stub_status_module --with-pcre
...
geoip_city_continent_code
geoip_city_country_code
geoip_city_country_code3
geoip_city_country_name
geoip_region
geoip_city
geoip_postal_code
geoip_latitude
geoip_longitude
geoip_country

but open restart, it throws the above error-msg in the error_log.
I use nginx 0.7.67 on FreeBSD7.

What could be the reason for this error?
I don't know if it actually works because the host is part of a CARP-setup
and it's the passive side (and I don't want to failover to it just to try)


Best Regards,
Rainer



More information about the nginx mailing list