google / ngx_brotli

NGINX module for Brotli compression
BSD 2-Clause "Simplified" License
2.1k stars 216 forks source link

version compatible issue after nginx upgraded to v1.20.0 #119

Closed owendswang closed 3 years ago

owendswang commented 3 years ago

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:

owendswang commented 3 years ago

Looking into the errors, found it's not brotli module. It's 'headers more' module. Sorry.