[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[users@httpd] brotli module loaded but doesn't work

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 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


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-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache2-users/msg02784.html on line 151
Call Stack
10.0007368648{main}( ).../msg02784.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache2-users/msg02784.html on line 151
Call Stack
10.0007368648{main}( ).../msg02784.html:0