Re: [users@httpd] default mime.types does not contain "gz" - any reason why not?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/10/06, Boyle Owen <Owen.Boyle@xxxxxxx> wrote:
> Greetings,
>
> I have just realised that the default version of mime.types which comes with apache distros 1.3 & 2.0 does not contain an extension for the type "application/x-gzip". This means that if you have a file on your site like download.tar.gz, it will be served with "Content-type: application/x-tar" (I guess apache falls back to the .tar when it can't find anything for .gz).

To expand slightly on what nick said, this is not defined in
mime.types because in many situations you want .gz to represent a
content-encoding rather than a content type.  Whether windows browsers
will deal with that correctly is a whole other story.  But it is left
for AddEncoding/AddType in httpd.conf to give users the option.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux