After upgraded nginx to v1.20.0, I rebuild brotli modules with nginx v1.20.0 source code. But after apply modules binary to /usr/lib/nginx/modules, it caused errors:
nginx: [emerg] module "/usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so" version 1018000 instead of 1020000 in /etc/nginx/modules-enabled/mod-http-headers-more-filter.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
Without '--with-compat' option, it only tells me 'not compatible' in errors.log without version numver specified.
So I downgraded nginx back to v1.18.0, but it caused another wiered errors:
nginx: [emerg] module "/usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so" version 1020000 instead of 1018000 in /etc/nginx/modules-enabled/mod-http-headers-more-filter.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
It's so wiered nginx can't tell modules version correctly. So I recompiled modules with nginx v1.18.0 source code and this error disappeared.
After upgraded nginx to v1.20.0, I rebuild brotli modules with nginx v1.20.0 source code. But after apply modules binary to /usr/lib/nginx/modules, it caused errors:
nginx: [emerg] module "/usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so" version 1018000 instead of 1020000 in /etc/nginx/modules-enabled/mod-http-headers-more-filter.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
Without '--with-compat' option, it only tells me 'not compatible' in errors.log without version numver specified. So I downgraded nginx back to v1.18.0, but it caused another wiered errors:nginx: [emerg] module "/usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so" version 1020000 instead of 1018000 in /etc/nginx/modules-enabled/mod-http-headers-more-filter.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
It's so wiered nginx can't tell modules version correctly. So I recompiled modules with nginx v1.18.0 source code and this error disappeared.System environment: