Ask Your Question
2

What does the "unknown directive brotli" error indicate when trying to start nginx?

asked 2023-05-01 23:50:27 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-02 00:12:02 +0000

huitzilopochtli gravatar image

The "unknown directive brotli" error indicates that the Brotli compression module is not installed or enabled on the server. Brotli is a compression algorithm supported by recent versions of Nginx to reduce file size and optimize website performance. To fix the error, the Brotli module needs to be installed and added to the Nginx configuration file. This can be done by building Nginx from source with the Brotli module or installing it via a package manager like apt-get or yum. Once installed, the Brotli module can be enabled in the Nginx configuration by adding the "brotli on;" directive to the appropriate context.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-01 23:50:27 +0000

Seen: 38 times

Last updated: May 02 '23