« Home | Use Gmail Generate Unlimited E-mail Addresses » | Gmail Search Operators: Find E-mail More Efficiently » | Subscribe to Digital Alchemy » | Surf Safely with Internet Explorer » | More Google Search Tips » | Google Search Tips » | Delete Sensitive Information on your Cell Phone » | RadioShack uses e-mail to fire workers » | Focus Media Goes to the Movies » | Enzyme cuts out possible Carcinogen in Baked Goods »

Wednesday, September 06, 2006

How to Save Bandwidth Webhosting

Bandwith is very expensive especially when you have overrages webhosting. So, how can you save bandwidth webhosting? How do you reduce bandwidth costs without sacrificing the quality of your site?

Installing mod_gzip for Apache can help reduce bandwidth costs. mod_gzip is an Apache extension that uses Gzip to reduce the size of your webpages. It can reduce the size of a webpage by as much as 80% in some cases I have seen. Setting it up is also very easy.

How Do I Install mod_gzip?
1) Download mod_gzip from Sourceforge. You will see several files available. If you are running Apache on Windows, download ApacheModuleGzip.dll.zip

2) Unzip the ApacheModuleGzip.dll into your modules folder. Your modules folder can be found under your Apache installation.

3) Backup httpd.conf as httpd.conf.bak. Open up httpd.conf and insert the following at the very end of the file. (Note: This is very important!)

LoadModule gzip_module modules/ApacheModuleGzip.dll
AddModule mod_gzip.c

<ifmodule>
mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_temp_dir /tmp
mod_gzip_minimum_file_size 1002
mod_gzip_maximum_file_size 0
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include mime text/.*
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.php3$
mod_gzip_item_include mime "application/x-httpd-php.*"
</ifmodule>

4) Restart Apache. Test if your code is working by by visiting Leknor's gzip tester. Enter your the URL of you homepage into the box and click Test. If it says your URL is gziped, then Bingo! You're on your way to saving big money on your bandwidth bills!

Labels:

Send to a Friend!       Subscribe!      

    Stumble Upon Toolbar    

Comment Archive

Reader Comments:


Previous Posts

« Home