http_geoip_module

Роман sirotar на mail.ru
Вт Мар 15 15:18:54 UTC 2016



15.03.2016 17:53, Maxim Dounin пишет:
> Hello!
>
> On Tue, Mar 15, 2016 at 05:41:09PM +0300, Роман wrote:
>
>> Добрый день,
>> подскажите что я делаю не так
>> обновил nginx с 1.8.1 до nginx version: nginx/1.9.12
>> и появились ругательства на geoip_country
>>
>> /usr/local/etc/rc.d/nginx configtest
>> Performing sanity check on nginx configuration:
>> nginx: [emerg] unknown directive "geoip_country" in
>> /usr/local/etc/nginx/nginx.conf:33
>> nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
>>
>> nginx -V
>> nginx version: nginx/1.9.12
>> 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_gzip_static_module --with-http_gunzip_module
>> --with-http_perl_module=dynamic --with-http_realip_module
>> --with-http_stub_status_module --with-pcre --with-http_v2_module
>> --with-http_ssl_module
>>
>> Хотя модуль присутсвует.
>> Куда копать?
> Судя по строке configure - модуль собран динамически ("=dynamic"),
> соответственно его надо загрузить с помощью директивы load_module
> (http://nginx.org/r/load_module/ru).
>
> Что-нибудь вроде
>
>      load_modules modules/ngx_http_geoip_module.so;
>
> ближе к началу конфига должно помочь.
Да, большое спасибо. Это помогло.
>



Подробная информация о списке рассылки nginx-ru