Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 gunzip .gz files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
BodOrange
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2003
Posts: 132

PostPosted: Mon Feb 20, 2006 7:19 pm    Post subject: Apache2 gunzip .gz files Reply with quote

I would like to have apache gunzip .gz files so that I can serve /usr/doc. In httpd.conf I have added
Code:
ExtFilterDefine gunzip intype="application/x-gzip" outtype="text/plain" mode=output cmd="/bin/zcat -c -d"
<Files *.gz>
  SetOutputFilter gunzip
  AddType text/plain .gz
</Files>


and have commented out the preceding
Code:
AddType application/x-gzip .gz .tgz


But my browser is still prompting to save/open the file in a compression app.
How can I get it working? It seems it should be possible with apache2 filter.
Thanks for any advice.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum