You are not logged in.

#1 2019-03-10 15:36:46

pancibule
Member
Registered: 2017-11-04
Posts: 6

[solved] How to enable nginx + Brotli on Arch?

Hi,
I just installed nginx + nginx-mod-brotli:

$ pacman -Qe | grep "nginx"
nginx 1.14.2-1
nginx-mod-brotli 1:0.1.2-4

nginx + gzip compression works fine. However, I can't enable Brotli compression. The official docs mention the

load_module

directive, but I can't find the installed module on my disk.

Where is "nginx-mod-brotli" installed and how can I tell the nginx.conf to use it?

Last edited by pancibule (2019-03-10 17:24:52)

Offline

#2 2019-03-10 15:49:25

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,374
Website

Re: [solved] How to enable nginx + Brotli on Arch?

pacman -Sl nginx-mod-brotli

EDIT: did you even read the page you linked to?  It's very short.  It gives you the full lines verbatim that you need to add to your config.

Last edited by Trilby (2019-03-10 16:03:43)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-03-10 16:00:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,405

Re: [solved] How to enable nginx + Brotli on Arch?

Moving to to Newbie Corner


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2019-03-10 17:01:35

pancibule
Member
Registered: 2017-11-04
Posts: 6

Re: [solved] How to enable nginx + Brotli on Arch?

EDIT: Found the files. That was all I asked for:

load_module "/usr/lib/nginx/modules/ngx_http_brotli_filter_module.so";
load_module "/usr/lib/nginx/modules/ngx_http_brotli_static_module.so";

Last edited by pancibule (2019-03-10 17:06:13)

Offline

#5 2019-03-10 17:08:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,374
Website

Re: [solved] How to enable nginx + Brotli on Arch?

It should work with relative paths as described in the link.  But in either case please remember to mark your thread as SOLVED.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2019-03-10 17:25:24

pancibule
Member
Registered: 2017-11-04
Posts: 6

Re: [solved] How to enable nginx + Brotli on Arch?

Trilby wrote:

It should work with relative paths as described in the link.  But in either case please remember to mark your thread as SOLVED.

No, it didn't work. nginx's output was that it can't find these modules.

Offline

Board footer

Powered by FluxBB