Author Topic: Unknown filter provider DEFLATE and Invalid command 'ExpiresActive'  (Read 5335 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hi.
When adding entries to htaccess:
Code: [Select]
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/xml
I get an error 500 and the log entry is Unknown filter provider DEFLATE,
and when adding records:
Code: [Select]
ExpiresActive On
ExpiresByType image/jpg "access 1 month"
ExpiresByType image/jpeg "access 1 month"
ExpiresByType image/gif "access 1 month"
ExpiresByType image/png "access 1 month"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 week"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 month"
ExpiresDefault "access 1 month"
also a mistake like 500 and logging: Invalid command 'ExpiresActive', perhaps misspelled or defined by a module not included in the server configuration.
Can this be fixed and how?

Offline
*****
Re: Unknown filter provider DEFLATE and Invalid command 'ExpiresActive'
« Reply #1 on: July 22, 2020, 08:23:34 AM »
go to apache main configuration and edit deflate and expires module by removing "#"

Offline
*
Re: Unknown filter provider DEFLATE and Invalid command 'ExpiresActive'
« Reply #2 on: July 24, 2020, 07:15:27 AM »
Thank you so much.