How to Install the Brotli module for Nginx(on the aaPanel)

V Records 2,873 Views , , , No comment

What is Brotli? Here is a quote from Google:

Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.

We will not repeat the installation of nginx here. Start installing the Brotli module now:

1.get the ngx_brotli

2.Install the Brotli module

use the nginx -V to see the nginx’s config , then use the ./configure add the ngx_brotli to the last.  

--add-module=/www/server/nginx/src/ngx_brotli  

The complete command is as follows:

3.To add Brotli configuration in Nginx configuration file

In the http{} area


This article was first published by V on 2021-10-09 and can be reprinted with permission, but please be sure to indicate the original link address of the article :http://www.nginxer.com/records/how-to-install-the-brotli-module-for-nginx-on-the-aapanel/

Leave a Reply

Your email address will not be published. Required fields are marked *

Go