BodOrange Tux's lil' helper
Joined: 05 Apr 2003 Posts: 132
|
Posted: Mon Feb 20, 2006 7:19 pm Post subject: Apache2 gunzip .gz files |
|
|
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. |
|