[BlueOnyx:04322] Re: Turn Gzip Compression On

Richard C. Barker Sr. rc at probass.com
Tue Apr 20 13:11:42 -05 2010


Question,
I tried this:


### Addons - Enable Mod Deflate - Start ###
# SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/x-js
text/css application/x-javascript
DeflateCompressionLevel 8
DeflateMemLevel 8
DeflateWindowSize 14
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|exe|t?gz|zip|bz2?|rar)$
no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent env=!dont-vary
### Addons - Enable Mod Deflate - End ###


And got this
/etc/rc.d/init.d/httpd restart
Stopping httpd: [  OK  ]
Starting httpd: Syntax error on line 4 of /etc/httpd/conf.d/moddeflate.conf:
Invalid command 'text/css', perhaps misspelled or defined by a module 
not included in the server configuration
[FAILED]
-- 
+---------------------------------------------+
  Richard C. Barker Sr.
+---------------------------------------------+



More information about the Blueonyx mailing list