Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Apache Software

Webaccelerator with mod_gzip ? 24

Christian Bjerre writes: "Currently I'm using Squid as an webaccelerator to sit infront of apache and serve static files (.html .js .gif .png .jpg). Squid also serves my dynamic content which is .php files. My goal is to let Squid or another opensource program gzip the html, since I have Squid installed on another machine, where cputime is not an issue. I've been reading page up&down and Squid dosen't seem to support gzip encoding in Webaccelerator mode. I haven't tried feeding it gzipped html, which could be a solution, if there was a way of having Squid handle all content as binary. What do you guys & girls do to minimize bandwidth usage? // chris"
This discussion has been archived. No new comments can be posted.

Webaccelerator with mod_gzip ?

Comments Filter:
  • From Tanenbaum... (Score:2, Interesting)

    by cperciva ( 102828 )
    Network bandwidth is increasing much faster than computational power. As time tends towards infinity, trying to "save bandwidth" at the expense of more complicated processing is dumb.
    • However, time isn't tending towards infinity very quickly and presently there are still good reasons to save bandwidth.
    • by bartjan ( 197895 )
      Does this formula hold when you compare the price of bandwidth with the price of computational power ??

      I can get all the bandwidth I want (and a bit more) but I have to pay for it.
      All the CPU's I use are overpowered, but I already have paid for the full capacity. This is not the case for my bandwidth, because I have to pay for every bit of data my webserver sends to the internet.
    • Re:From Tanenbaum... (Score:4, Informative)

      by WasterDave ( 20047 ) <davep AT zedkep DOT com> on Saturday March 09, 2002 @08:24PM (#3136246)
      Yeah, whatever but right now network bandwidth is fscking expensive. OTOH I'm not sure that an appreciable quantity of the bandwidth from a website is actually text.

      FWIW these guys [youngit.org.nz] use php's ob_gzhander [php.net] function and appear to get quite good results.

      Dave

    • Re:From Tanenbaum... (Score:2, Informative)

      by dietz ( 553239 )
      Slashdot uses mod_gzip (watch your connections [freezope.org] sometime if you don't believe me), so apparently they decided CPU time was cheaper than bandwidth, at least on very large scales.

      That should be endorsment enough, right?
    • This might be true, but we're not near infinity yet - in this sense the increasing abundance of mobile web access devices has taken us back in time... :-)
    • Well, I don't think you realize how much bandwidth is saved. My stats before gzip say 329,391 pages for 3.2 gigs. January (after gzip) was 285,289 pages, and 1.2 gigs. So I can serve out 4 times as many pages a month and still make our 5 gig quota.
    • This is utterly contrary to everyday experience. I just can't believe it; it's so absurd.
    • When is waste of resources ever a good idea? Someone pays for them eventually, so if a little forethought could conserve resources, it should be applied.

  • Use HTTP Properly (Score:4, Interesting)

    by Fweeky ( 41046 ) on Saturday March 09, 2002 @08:14PM (#3136200) Homepage
    HTTP is designed to be cached; for example, the Vary: header lets the cache know what to cache based on; in this case it'd be Content-Encoding.

    Squid may well be smart enough to know to cache documents with two different Content-Encoding's as different entities, but if not you just add Vary: Content-Encoding so it does.

    (that, at least, is the theory, I'm afraid I can't claim to have read the entire HTTP 1.1 spec, tsk :)
  • by nathanh ( 1214 ) on Saturday March 09, 2002 @10:16PM (#3136515) Homepage

    Apache+mod_proxy+mod_cache can also be an httpd accelerator (aka reverse proxy) and I've had great success with it. My original configuration used Squid but several limitations with Squid forced me to investigate the alternatives. I finally settled on Apache and I've been very happy with it. Apache also has better support for 301/302 rewriting (the PassProxyReverse directive) than Squid, and this was a deciding factor for me in dumping Squid and going with Apache.

  • Internet Explorer (Score:4, Interesting)

    by Molina the Bofh ( 99621 ) on Saturday March 09, 2002 @11:26PM (#3136660) Homepage
    I run mod_gzip on my servers.

    I was using tcpflow to monitor the connections, and I noticed something strange. It seems most IE versions (like 5, for instance) append the following string on the request connection:

    Accept-Encoding: gzip, deflate

    that tells the server it can send compressed data.
    Strangely, I notice that if I access the very same site using IE 6 + patch Q312461 on XP, it DOES NOT send such string, thus all my requests return unencrypted.

    I checked, and I am not using a proxy, and on advanced options, Use HTTP 1.1 is checked allright.

    How can I enable compression ? It *SHOULD* be default. Has somebody else noticed this strange behavior ?
  • anyone looked at edge server technology? its something ibm and various others came up with to basically move the content out towards the clients.

    what i'm wondering is if that technology conecpt has any other compression novel ideas.

  • I have been using the RabbIT proxy for a while now..

    It is really good for low bandwidth connections like Mobile Phone connections (such as 9600 and 14400bps)

    It GZIP's both Dynamic and Static content from any source.

    I've been using it with Mobile Internet Explorer on my iPAQ via my Mobile phone

    It's worth looking into.
  • There is an article on php's output buffering (which includes compression)here [zend.com]
    There are also a collection of third party class's which you can browse here [resourceindex.com].

THEGODDESSOFTHENETHASTWISTINGFINGERSANDHERVOICEISLIKEAJAVELININTHENIGHTDUDE

Working...