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