![]() |
Enable mod_deflate or gzip - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: Enable mod_deflate or gzip (/thread-7050.html) |
Enable mod_deflate or gzip - seba22 - 06-25-2009 06:22 AM Hello, I have to set up a compression for one of my domain working under ispCP Omega. I'm try for test to add this line <Files *.js> SetOutputFilter DEFLATE </Files> into .htaccess file in root of htdocs user directory but doesn't work. Server send me a uncompressed data. Can you tell me any other ideas how to enable this function ? Regards I find it cp /etc/apache2/mod-available/deflate* /etc/apache2/mod-enabled then nano /etc/apache2/mod-enabled/deflate.conf on bottom add <IfModule mod_deflate.c> <FilesMatch "\.(js|css)$"> SetOutputFilter DEFLATE </FilesMatch> </IfModule> then save /etc/init.d/apache2 restart Done ![]() RE: Enable mod_deflate or gzip - kilburn - 06-25-2009 06:44 AM Code: cp /etc/apache2/mod-available/deflate* /etc/apache2/mod-enabled Code: a2enmod deflate ![]() Also, the configuration snippet can be placed in an .htaccess in order to enable it for a single domain RE: Enable mod_deflate or gzip - seba22 - 06-25-2009 06:51 AM Thank you. I see, on a CSS files and JS framework almost 50 % less size. regards |