It should only take about 10 minutes to get your site running with mod_gzip. Simple enough. I hope that it helps somebody out.
[robg adds: I haven't tested this one.]
|
|
|
I wanted to get mod_gzip working with my Apache installation in OS X and I figured that other people might want an easy, step-by-step guide for the procedure so I threw one together. For presentation's sake, I've written up the procedures in an entry on my blog:
Exordium.
It should only take about 10 minutes to get your site running with mod_gzip. Simple enough. I hope that it helps somebody out.
•
[9,304 views]
Hint Options
Enable mod_gzip for Apache
I never have really understood the purpose of mod_zip compression for Apache. I mean - I am sure at one time when everyone had 14.4k modems, it had its place. But if web pages are created properly, optimized properly - I see no reason for a compression scheme for web pages that may shave a tenth or one-hundreth of a second of the download time for a page.
Enable mod_gzip for Apache
One word: Bandwidth. Since HTML files are easily compressible text, size can be reduced by a factor of twenty. This does add up on a large bandwidth constrained site.
Enable mod_gzip for Apache
If you are paying per GB transfered for your hosting, this can make quite a difference.
My experiences with mod_gzip were similar - easy and useful
I did these steps some months back as well. It is a simple module to build if you have the developer's tools installed.
Why do this? gzip can compress better than the compression built into modems. When I checked my server logs, I found that most served web pages were typically 1/3 to 1/4 of the original size. For pages that are under 10K, it's not very noticeable but most useful home pages are 25-100KB. I work hard to keep my pages small to begin with... With a little work you could use mod gzip so that your web pages are actually stored as *.html.gz pages and have mod_gzip unzip only when necessary. *cough* Safari *cough* This could save bandwidth and processor bandwidth used to compress on the fly. A footnote to cable modem users: a month ago my cable modem provider (the only availabe broadband in my area) decided to block port 80 so there would be no simple webserving from home. Technically running any server was a violation of the terms of service. Luckily my new web host service already has mod_gzip running. I must admit, though, it *was* fun hosting my domain from a humble iMac while it lasted... I learned a bunch about Apache, perl, web virii, etc... ---
Enable mod_gzip for Apache
Now if only Safari actually supported gzip compressed pages! I can't understand why Apple went GM with Safari without implementing this relatively basic feature.
Enable mod_gzip for Apache
With Apache 2.0.x, it's even easier.
Enable mod_gzip for Apache
Hi,
Enable mod_gzip for Apache
I'd guess that you don't have the dev tools installed.
Enable mod_gzip for Apache
no i don't have, i think i'm gona donload it now.
Enable mod_gzip for Apache
Are there any similar and easy instruction for mod_dav available? Why can't I find any _easy_ instruction for mod_dav anywhere? I have a server on LAN I want to enable WebDAV on, since it is on a LAN security really is no issue. Any suggestions?
Enable mod_gzip for Apache
Made the modifications to the sourceforge files that the page notes and it resulted in three odd things that broke Apache when attempting to add this to OS X Server 10.2.6:
Anyone have any suggestions? (Other than typing "mv httpd.conf.bak httpd.conf" into the terminal.)
Enable mod_gzip for Apache
I am having the same problem as this - any help would be really appreciated.
Enable mod_gzip for Apache
Ok so I think I have fixed it - this solution works on my Server install anyway.
Enable mod_gzip for Apache
andy,
Thanks for the advice, but I already fixed that before posting (10.2 Server sets the ServerRoot to /Library/WebServer/ which isn't "normal" in other Apache configs, but changing it causes OS X fits) I'm still just scratching my head trying to figure out what I've missed... |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.21 seconds |
|