Current time: 11-15-2024, 09:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
Enable mod_deflate or gzip
Author Message
seba22 Offline
Junior Member
*

Posts: 39
Joined: Jul 2008
Reputation: 0
Post: #1
Enable mod_deflate or gzip
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 Smile
(This post was last modified: 06-25-2009 06:41 AM by seba22.)
06-25-2009 06:22 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Enable mod_deflate or gzip
Code:
cp /etc/apache2/mod-available/deflate* /etc/apache2/mod-enabled
Should be:
Code:
a2enmod deflate
This takes care of symlinking for you Smile

Also, the configuration snippet can be placed in an .htaccess in order to enable it for a single domain
06-25-2009 06:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
seba22 Offline
Junior Member
*

Posts: 39
Joined: Jul 2008
Reputation: 0
Post: #3
RE: Enable mod_deflate or gzip
Thank you.
I see, on a CSS files and JS framework almost 50 % less size.


regards
06-25-2009 06:51 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)