Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way to implement mod_gunzip's functionality using apache filters?

Store gzipped files on the server, hand out compressed data to the browsers that can cope with it and uncompress it for browsers which cannot.

I'm thinking of moving my website to a different host, but they don't offer enough diskspace, so wondering if there's a way to reduce the size of the html files (in thousands) I have.

I found this website which talks about it, but the instructions in the comments aren't working for me.

UPDATE:

According to @U4iK_HaZe's reply, mod-deflate in inflate mode, should also do the job, what would the configuration look like for that?

share|improve this question
    
Here's the regular stuff: httpd.apache.org/docs/2.2/mod/mod_deflate.html. Okay here it is... looking about half way down the page, you can use indeed, and INFLATE filter. Output Decompression The mod_deflate module also provides a filter for inflating/uncompressing a gzip compressed response body. In order to activate this feature you have to insert the INFLATE filter into the outputfilter chain using SetOutputFilter or AddOutputFilter, for example: <Location /dav-area> ProxyPass example.com SetOutputFilter INFLATE </Location> –  U4iK_HaZe Sep 6 '11 at 6:41
    
My apologies for the spacing. It's not supporting code in the comment box. But look on the site a little less than half way down. There's some code you can use. –  U4iK_HaZe Sep 6 '11 at 6:44
add comment

1 Answer

i dont know why you would want to do this but mod-deflate on inflate mode is a hell of a lot easier to implement. i cant give you a code at the moment because im not able to access my config but if you can wait till tomorrow i can help more.

EDIT: find a new webhost.

share|improve this answer
    
it'd be cool if you could give me the mod-deflate on inflate mode configuration –  freethinker Sep 6 '11 at 5:03
    
Be patient, I will help you as soon as I can. –  U4iK_HaZe Sep 6 '11 at 5:39
    
Hm. One minute ago, this was downvoted once more. But the topic should have been closed. Not helping the fact that I can't ask questions here. I'm trying to be useful. –  U4iK_HaZe Sep 6 '11 at 21:15
    
@U4iK_HaZe Why can't you ask questions here? I downvoted it becuase of the spam. This is not an appropriate place to sell your services. If you want to advertise here, you need to pay for it like all the rest of the advertisers do. –  EEAA Sep 6 '11 at 21:28
    
This is not my service. One of the other recent posts about wcwma or whatever, is NOT my service. Simply put, I'm not promoting anything anymore, thought they were free, I stopped. But now it seems as though all of you have grudges against me now? :) cheer up. Lately, I've been trying to be as helpful as possible. I don't get it. And for the "host it free for a month" is just courtesy. I was offering a helping hand to someone in need. EDIT: I can't ask questions because people who downvote so much (I went from 81 rep to 72 in one day, and suddenly it says "No longer accepting questions".) –  U4iK_HaZe Sep 6 '11 at 21:31
show 9 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.