x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

Reply
 
LinkBack Thread Tools Display Modes
I love the internet

vigge_sWe's Avatar

Join Date: Oct 2007
Posts: 2,705
Credits: 8,760
vigge_sWe has a reputation beyond reputevigge_sWe has a reputation beyond repute
Location: Göteborg, Sweden

Quote  
06-15-2008, 10:06 AM
[.HTACCESS]GZIP compression your pages

Why?

Pros
  • Save bandwidth
  • Users gets the page faster
Cons
  • CPU load

Put this in your .htaccess:
Code:
<IfModule mod_gzip.c>
  mod_gzip_on yes
  mod_gzip_item_include mime text/html
  mod_gzip_item_include mime text/plain
  mod_gzip_item_include mime text/css
  mod_gzip_item_include mime application/xml
  mod_gzip_item_include mime application/x-httpd-php
  mod_gzip_item_include mime image/x-generic
  mod_gzip_dechunk yes
  mod_gzip_min_http 1000
  mod_gzip_temp_dir /tmp
  mod_gzip_keep_workfiles No
  mod_gzip_minimum_file_size  1000
  mod_gzip_maximum_file_size  0
  mod_gzip_maximum_inmem_size 1000000
  mod_gzip_can_negotiate Yes
</IfModule>
This enables GZIP on html, plain text, images, xml and php

Source: http://forums.invisionpower.com/inde...owtopic=180892
__________________

Last edited by vigge_sWe; 06-15-2008 at 10:07 AM.
Reply With Quote
vigge_sWe is offlineReport Post
Lord Of The Keys

LHVWB's Avatar

Join Date: Jan 2008
Posts: 1,280
Credits: 9,231
LHVWB is a jewel in the rough
Location: Australia

Send a message via MSN to LHVWB
Quote  
06-15-2008, 05:24 PM
Re: [.HTACCESS]GZIP compression your pages

I haven't worked with this sort of compression much, just a question. How high would the CPU load be? Because it might get you suspended for high resource useage if its high enough.
Reply With Quote
LHVWB is offlineReport Post
I love the internet

vigge_sWe's Avatar

Join Date: Oct 2007
Posts: 2,705
Credits: 8,760
vigge_sWe has a reputation beyond reputevigge_sWe has a reputation beyond repute
Location: Göteborg, Sweden

Quote  
06-15-2008, 05:32 PM
Re: [.HTACCESS]GZIP compression your pages

Quote:
Originally Posted by LHVWB View Post
I haven't worked with this sort of compression much, just a question. How high would the CPU load be? Because it might get you suspended for high resource useage if its high enough.
well, since there isn't a way to see how much CPU a single user uses it is hard to decide but I have used it for my forum and it have not been any problem at all.

It is only zipping the files before sending them
__________________
Reply With Quote
vigge_sWe is offlineReport Post
Account Manager

sohailamir52's Avatar

Join Date: Sep 2007
Posts: 2,796
Credits: 1,302
sohailamir52 has a reputation beyond repute
Location: Dubai, UAE

Quote  
06-16-2008, 07:28 AM
Re: [.HTACCESS]GZIP compression your pages

The only bad thing is that it slows down the CPU, a lot. Nice tutorial by the way.
__________________

SohailTech MANAGER/X10 MODERATOR
•NEED DESIGNING SERVICES/ADVERTISING? CLICK HERE
•PLEASE DO NOT PM ME OR ANY OF THE STAFF FOR HELP
•CLICK THE TO GIVE ME REP

NEED HELP?
SERVER STATUS - INSERTING ADS - PHP PROBLEMS? - HOW DO CREDITS WORK? - x10 COMMANDMENTS - TERMS OF SERVICE - MARKETPLACE RULES
Reply With Quote
sohailamir52 is offlineReport Post
x10Hosting Member

Join Date: Jun 2008
Posts: 2
Credits: 11
seifer89 is on a distinguished road
Quote  
06-21-2008, 06:25 AM
Re: [.HTACCESS]GZIP compression your pages

thanks anyway
Reply With Quote
seifer89 is offlineReport Post
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
help-add content to all pages at once andhrafun Scripts & 3rd Party Apps 3 09-19-2007 04:41 AM
Ad-Code in PHP Pages ghettoc401 Free Hosting 3 08-16-2007 06:19 PM
how can i convert Php pages and code into asp pages and code n4tec Scripts & 3rd Party Apps 4 10-21-2006 05:57 PM
Ads on my pages cokacola650 Free Hosting 2 02-16-2006 11:38 AM
Question about ads on web pages for the FREE web hosting plan mygalleries Free Hosting 7 09-16-2005 11:27 AM


All times are GMT -5. The time now is 06:19 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Advertising | Share Prices | Remortgages | Adult ADHD | Shares