Control Web Panel
WebPanel => Apache => Nginx => Topic started by: mind5t0rm on August 10, 2025, 02:15:23 PM
-
Hi all
I'm using NGINX version 1.28 on my CWP
I'm trying to install the Brotli modules and my file source has outdated files:
http://dl1.centos-webpanel.com/files/nginx/modules/nginx-brotli-modules.zip
Running nginx -t
I'm getting this message:
nginx: [emerg] module "/etc/nginx/modules/ngx_http_brotli_filter_module.so" version 1016000 instead of 1028000 in /etc/nginx/nginx.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
Does anyone have the source of the updated Brotli version?
The Github project seems abandoned too:
https://github.com/google/ngx_brotli
Any suggestions?
Thank you
-
Does this help you?
https://www.alphagnu.com/topic/10-enable-brotli-compression-on-nginx-cwp-and-on-linux-os-for-official-nginx/#comment-12
and updating Nginx:
https://www.alphagnu.com/topic/55-how-to-install-latest-stablemainline-nginx-in-cwp-centos-89-stream-almalinux-89-rockylinux-89/#comment-84
-
Thank you @overseer
Unfortunately nope and Sandeep mentions in his latest forum post that he needs to update the guide because it is old.
I'm currently using Nginx v1.28 (stable repo) on my CWP PRO - AlmaLinux 8.
I tried both sources, and both have the same version incompatibility error.
I think - if the Brotli Module is abandoned - then we need to do a custom mod over the existing Brotli Module files to make them compatible with newer Nginx versions.
Any suggestions?
Thanks again.
-
The Google Brotli module hasn't been updated in 2 years on GitHub. You could fallback to gzip compression until this gets figured out.
https://blog.cloudflare.com/this-is-brotli-from-origin/
-
Already on Gzip.
Thank you Overseer
Let's hope we will get an update on that soon.
-
FYI for anyone looking to enable Brotli compression on Nginx 1.28v ++
This guide worked for me:
https://www.alphagnu.com/topic/10-enable-brotli-compression-on-nginx-cwp-and-on-linux-os-for-official-nginx/ (https://www.alphagnu.com/topic/10-enable-brotli-compression-on-nginx-cwp-and-on-linux-os-for-official-nginx/)
I followed the last thread by AmarBunty on May 23.