View previous topic :: View next topic |
Author |
Message |
WhimpyPeon Apprentice


Joined: 18 Oct 2003 Posts: 158 Location: Columbus, Nebraska
|
Posted: Wed Apr 05, 2006 6:57 pm Post subject: [Solved] - Apache Unzip Files |
|
|
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 |
|
 |
daark.child n00b

Joined: 18 Mar 2006 Posts: 19 Location: UK
|
|
Back to top |
|
 |
WhimpyPeon Apprentice


Joined: 18 Oct 2003 Posts: 158 Location: Columbus, Nebraska
|
Posted: Wed Apr 05, 2006 8:59 pm Post subject: |
|
|
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 |
|
 |
WhimpyPeon Apprentice


Joined: 18 Oct 2003 Posts: 158 Location: Columbus, Nebraska
|
Posted: Thu Apr 06, 2006 1:29 am Post subject: |
|
|
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 |
|
 |
|