Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] - Apache Unzip 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
WhimpyPeon
Apprentice
Apprentice


Joined: 18 Oct 2003
Posts: 158
Location: Columbus, Nebraska

PostPosted: Wed Apr 05, 2006 6:57 pm    Post subject: [Solved] - Apache Unzip Files Reply with quote

I have an apache server on an Intranet. I would like the system documentation available through apache. I created a symbolic link from /usr/share/doc to /var/www/localhost/doc . I can move around the directory structure fine, however when I click on a .gz file it wants to download the file.

I have worked with other distros and the files are unzipped and sent down to the browser as text. I'm sure there is some apache module or configuration setting that makes this happen, but I can't for the life of me figure it out.

Thanks in advance for any assistance.


Last edited by WhimpyPeon on Thu Apr 06, 2006 1:30 am; edited 1 time in total
Back to top
View user's profile Send private message
daark.child
n00b
n00b


Joined: 18 Mar 2006
Posts: 19
Location: UK

PostPosted: Wed Apr 05, 2006 7:48 pm    Post subject: Reply with quote

Checkout mod-gunzip from http://oldach.net/[/code]
Back to top
View user's profile Send private message
WhimpyPeon
Apprentice
Apprentice


Joined: 18 Oct 2003
Posts: 158
Location: Columbus, Nebraska

PostPosted: Wed Apr 05, 2006 8:59 pm    Post subject: Reply with quote

I had looked at that project and decided to stay away. Not that I have a problem with it, just because it is not in portage. I'm no apache guru and I really don't want to break it. I looked at an ubuntu apache server where this was working but mod_gunzip was not installed there. There is a mod_gzip in portage but that looks to be the reverse of what I want to do.

Hmmmmm.
Back to top
View user's profile Send private message
WhimpyPeon
Apprentice
Apprentice


Joined: 18 Oct 2003
Posts: 158
Location: Columbus, Nebraska

PostPosted: Thu Apr 06, 2006 1:29 am    Post subject: Reply with quote

I figured it out. There are some settings in /etc/apache2/httpd.conf that needed changed:

Uncomment these lines:
Code:

AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz

And then comment these two lines:
Code:

#AddType application/x-compress .Z
#AddType application/x-gzip .gz .tgz

This doesn't actually unzip the files at the server it just allows certain browsers (I have not tried anything else, but Mozilla and IE works) to do it.
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