Kulturmensch
Regular Pleskian
My server with nginx stand alone:
A recent test (Does your website support Brotli?) showed that brotli is not enabled although it should be by default..
I found, that the necessary modules are available:
/etc/nginx/modules.conf.d/brotli.conf
content :
load_module nginx/modules/ngx_http_brotli_filter_module.so;
load_module nginx/modules/ngx_http_brotli_static_module.so;
but a conf-file for Brotli does not exist.
So, I created: /etc/nginx/conf.d/brotli.conf with the content:
brotli on;
brotli_comp_level 6;
brotli_static on;
brotli_types application/atom+xml application/javascript application/json application/rss+xml
application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype
application/x-font-ttf application/x-javascript application/xhtml+xml application/xml
font/eot font/opentype font/otf font/truetype image/svg+xml image/vnd.microsoft.icon
image/x-icon image/x-win-bitmap text/css text/javascript text/plain text/xml;
But now the syntax check gave an error:
nginx -t
nginx: [emerg] unknown directive "brotli" in /etc/nginx/conf.d/brotli.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
Any idea how to make brotli running on my server?
Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz (10 core(s)) | |
Version | Plesk Obsidian v18.0.40_build1800211207.16 os_Ubuntu 20.04 |
OS | Ubuntu 20.04.3 LTS |
A recent test (Does your website support Brotli?) showed that brotli is not enabled although it should be by default..
I found, that the necessary modules are available:
/etc/nginx/modules.conf.d/brotli.conf
content :
load_module nginx/modules/ngx_http_brotli_filter_module.so;
load_module nginx/modules/ngx_http_brotli_static_module.so;
but a conf-file for Brotli does not exist.
So, I created: /etc/nginx/conf.d/brotli.conf with the content:
brotli on;
brotli_comp_level 6;
brotli_static on;
brotli_types application/atom+xml application/javascript application/json application/rss+xml
application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype
application/x-font-ttf application/x-javascript application/xhtml+xml application/xml
font/eot font/opentype font/otf font/truetype image/svg+xml image/vnd.microsoft.icon
image/x-icon image/x-win-bitmap text/css text/javascript text/plain text/xml;
But now the syntax check gave an error:
nginx -t
nginx: [emerg] unknown directive "brotli" in /etc/nginx/conf.d/brotli.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
Any idea how to make brotli running on my server?