Welcome! Log In Create A New Profile

Advanced

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

Maxim Dounin
September 06, 2010 01:50PM
Hello!

On Mon, Sep 06, 2010 at 06:38:28PM +0200, rainer@ultra-secure.de wrote:

> 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.

On *restart* nginx will refuse to start with the above error
message on terminal. As you see this in error_log - probably you
used *reload* instead (i.e. re-read config for an already running
binary). This error indicate that your loaded binary doesn't have
geoip module compiled in.

Follow binary upgrade procedure to upgrade running binary to one
you have on disk. If you are using nginx from ports - just run
"/usr/local/etc/rc.d/nginx upgrade". Or, if you don't care about
several seconds of downtime, just restart nginx.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

Anonymous User September 06, 2010 12:42PM

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

Anonymous User September 06, 2010 01:06PM

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

Maxim Dounin September 06, 2010 01:50PM

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

Anonymous User September 06, 2010 03:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 279
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