Nginx completed the test version of 1010002 instead of 1012000 in / usr / share / nginx / modules / mod-http-image-filter.conf

Updated nginx on the centos 6 test system from 1.10.x to 1.12.x via yum update. Then I followed the instructions to get the GeoIP module working ( https://tushev.org/articles/linux-bsd/32/using-dynamic-geoip-module-with-nginx-centos ).

When I run nginx -t, the following error is displayed:

$ nginx -t
nginx: [emerg] module "/usr/lib64/nginx/modules/ngx_http_image_filter_module.so" version 1010002 instead of 1012000 in /usr/share/nginx/modules/mod-http-image-filter.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

In my nginx.conf file, I commented out the line below

include /usr/share/nginx/modules/*.conf;

and nginx worked again as expected. This is great, but does not solve my problem. Since this is a development environment, I need it to work 100%. I'm not sure I really need an image filter after reading the spec ( http://nginx.org/en/docs/http/ngx_http_image_filter_module.html ).

In addition, I also added successful individual modules:

load_module "modules/ngx_http_geoip_module.so";

I would like to know how to solve the problem with the version that appears in the error message and find out if it is good to omit these modules except the one I want.

Thank you for your time and attention.

+5
source share
4 answers

Rollback to 1.10.2. nginx: [emerg] module "/etc/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1013002 in /etc/nginx/nginx.conf:12 nginx version: nginx/1.13.2

+1
source

, , nginx rm -rf /etc/nginx, make install .

0

.conf , nginx, .

0

, - , :

ngx_http_modsecurity_module.so, nginx.conf /etc/nginx/nginx.config.

load_module modules/ngx_http_modsecurity_module.so;

  1. nginx '$ nginx -v'
" nginx: nginx/1.15.10" '$ wget http://nginx.org/download/nginx-1.15.10.tar.gz' $ tar zxvf nginx-1.15.10.tar.gz $ cd nginx-1.15.10 $./configure --with-compat --add-dynamic-module =/path_to_your/modsecurity-nginx-connector $ cp objs/ngx_http_modsecurity_module.so/etc/nginx/modules nginx /etc/nginx/nginx.conf user 'load_module modules/ngx_http_modsecurity_module.so;' $ nginx -t 'nginx: /etc/nginx/nginx.conf
nginx: /etc/nginx/nginx.conf '

... , nginx.org , .

0
source

Source: https://habr.com/ru/post/1675375/


All Articles