Apache 2.4.33 compiled from source (built as rpm) with --enable-brotli
switch. CentOS 7.
[alice@localhost ~]$ rpm -ql httpd |grep brotli
/usr/lib64/httpd/modules/mod_brotli.so
[alice@localhost ~]$ brotli --version
brotli 1.0.4
[alice@localhost ~]$ ldd /usr/lib64/httpd/modules/mod_brotli.so
linux-vdso.so.1 => (0x00007ffd5dde1000)
libbrotlienc.so.1 => /lib64/libbrotlienc.so.1 (0x00007f8471931000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8471715000)
libc.so.6 => /lib64/libc.so.6 (0x00007f8471348000)
libm.so.6 => /lib64/libm.so.6 (0x00007f8471046000)
libbrotlicommon.so.1 => /lib64/libbrotlicommon.so.1 (0x00007f8470e26000)
/lib64/ld-linux-x86-64.so.2 (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
application/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
</IfModule>
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: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org