Control Web Panel

WebPanel => Apache => Nginx => Topic started by: mind5t0rm on August 10, 2025, 02:15:23 PM

Title: Brotli Module update version
Post 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
Code: [Select]
nginx -t I'm getting this message:

Code: [Select]
nginx: [emerg] module "/etc/nginx/modules/ngx_http_brotli_filter_module.so" version 1016000 instead of 1028000 in /etc/nginx/nginx.conf:1
Code: [Select]
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
Title: Re: Brotli Module update version
Post by: overseer on August 10, 2025, 02:25:32 PM
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
Title: Re: Brotli Module update version
Post by: mind5t0rm on August 11, 2025, 11:55:52 AM
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.
Title: Re: Brotli Module update version
Post by: overseer on August 11, 2025, 05:39:37 PM
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/
Title: Re: Brotli Module update version
Post by: mind5t0rm on August 12, 2025, 03:24:24 AM
Already on Gzip.

Thank you Overseer

Let's hope we will get an update on that soon.
Title: Re: Brotli Module update version
Post by: mind5t0rm on August 20, 2025, 05:01:08 AM
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.