httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael A. Peters" <>
Subject [users@httpd] brotli module loaded but doesn't work
Date Fri, 22 Jun 2018 07:35:58 GMT
Apache 2.4.33 compiled from source (built as rpm) with --enable-brotli 
switch. CentOS 7.

[alice@localhost ~]$ rpm -ql httpd |grep brotli

[alice@localhost ~]$ brotli --version
brotli 1.0.4

[alice@localhost ~]$ ldd /usr/lib64/httpd/modules/ =>  (0x00007ffd5dde1000) => /lib64/ (0x00007f8471931000) => /lib64/ (0x00007f8471715000) => /lib64/ (0x00007f8471348000) => /lib64/ (0x00007f8471046000) => /lib64/ (0x00007f8470e26000)
	/lib64/ (0x00007f8471dbd000)

[alice@localhost ~]$ apachectl -M |grep brotli
  brotli_module (shared)
[alice@localhost ~]$

Looks good, the module is loaded. But - if I have:

<IfModule brotli_module>
   # Compression
   ## BrotliCompressionLevel: 0-11 (default: 11)
   BrotliCompressionLevel 10

   ## BrotliWindowSize: 10-24 (default: 22)
   BrotliWindowSize 22

   # Logging
   # Filter note
   BrotliFilterNote Input  brotli_in
   BrotliFilterNote Output brotli_out
   BrotliFilterNote Ratio  brotli_ratio

   #LogFormat '"%r" %{brotli_out}n/%{brotli_in}n (%{brotli_ratio}n)' brotli
   #CustomLog ${APACHE_LOG_DIR}/brotli_access.log brotli

   # Output filter
   AddOutputFilterByType BROTLI text/html text/plain text/css text/xml
   AddOutputFilterByType BROTLI text/css
   AddOutputFilterByType BROTLI application/x-javascript 
   AddOutputFilterByType BROTLI application/rss+xml
   AddOutputFilterByType BROTLI application/xml
   AddOutputFilterByType BROTLI application/json

   # Global output filer if necessary.
   # SetOutputFilter BROTLI
   # SetEnvIfNoCase Request_URI \.txt$ no-br


then apache won't start:

[alice@localhost ~]$ apachectl -M
AH00526: Syntax error on line 4 of /etc/httpd/conf.d/brotli.conf:
Invalid command 'BrotliCompressionLevel', perhaps misspelled or defined 
by a module not included in the server configuration
[alice@localhost ~]$

Same for BrotliWindowSize if I comment out BrotliCompressionLevel.

Comment both out and I get:

[alice@localhost ~]$ apachectl -M
AH00526: Syntax error on line 19 of /etc/httpd/conf.d/brotli.conf:
Unknown filter provider BROTLI
[alice@localhost ~]$

Help ???

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message