• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Brotli configuration in /etc/nginx/

Servus

Basic Pleskian
Hi,
I use Ubuntu 20 server (Ionos) with Plesk Obsidian 18.0.35 #1 with ngx_pagespeed and brotli and ONLY Nginx webhosting..
Today I discovered a double configuration in /etc/nginx/modules.available.d/brotli.load

Seemed for me that it looks like:

load_module nginx/modules/ngx_http_brotli_filter_module.so;
load_module nginx/modules/ngx_http_brotli_filter_module.so;

So I changed it to:

load_module nginx/modules/ngx_http_brotli_filter_module.so;
load_module nginx/modules/ngx_http_brotli_static_module.so;
nginx -t
...OK....
service nginx restart

Afterwards I wasn't sure if I first looked so close to say that both lines were exactly the same. I was unsure later if I did the right thing.
Question: Is my configuration correct this way? Perhaps somebody could look in his/her configuration and tell me if my configuration is correct or not.

Thanks for reading this thread!
 
Last edited:
hello @Servus ,
the correct content of /etc/nginx/modules.available.d/brotli.load should be
load_module nginx/modules/ngx_http_brotli_filter_module.so;
load_module nginx/modules/ngx_http_brotli_static_module.so;
I've checked it for 18.0.35.0, 18.0.35.1.
Can't say why there was ngx_http_brotli_filter_module twice in your config. So you've changed it in a right way.
 
Thanks a lot for help.
Not only that the entry was twice, also the two lines were in the middle of the page/file, not in the first line. The lines were in the centre of the whole page and they didn't started from the same point. It looked like a child wrote them!
Two possibilities: A program plucked them by error in the centre of the file? Or, someone who has no knowledge plugged them inside? Really in a way myterious.
 
Back
Top