Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
DeflateCompressionLevel and other directives just don't work in Ubuntu 14.04
I have looked at the mod_deflate tutorial and tried to reduce the compression level as instructed midway through that tutorial.
But, no matter where I place the compression level or other directives, apachectl configtest fails with the following error:
root@host:/etc/apache2/mods-enabled# apachectl configtest AH00526: Syntax error on line 21 of /etc/apache2/mods-enabled/deflate.conf: Invalid command '\xe2\x80\x8bDeflateMemLevel', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed. The Apache error log may have more information.
Here’s how my deflate.conf looks in Ubuntu 14.04 and the three directives there are what I am trying to add:
Here are the values I am trying to add to the file:
DeflateCompressionLevel 7 DeflateMemLevel 8 DeflateWindowSize 10
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×