<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: httpd and MIME types in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/httpd-and-mime-types/m-p/3770447#M22832</link>
    <description>If you're running a RH based system, you'll already have something like these lines in '/etc/httpd/conf/httpd.conf':&lt;BR /&gt;&lt;BR /&gt;LoadModule mime_magic_module modules/mod_mime_magic.so&lt;BR /&gt;#&lt;BR /&gt;# The mod_mime_magic module allows the server to use various hints from the&lt;BR /&gt;# contents of the file itself to determine its type.  The MIMEMagicFile&lt;BR /&gt;# directive tells the module where the hint definitions are located.&lt;BR /&gt;#&lt;BR /&gt;&lt;IFMODULE mod_mime_magic.c=""&gt;&lt;BR /&gt;#   MIMEMagicFile /usr/share/magic.mime&lt;BR /&gt;    MIMEMagicFile conf/magic&lt;BR /&gt;&lt;/IFMODULE&gt;&lt;BR /&gt;&lt;BR /&gt;Andyou'll also have the file '/etc/httpd/conf/magic' (which is a magic-mime file).&lt;BR /&gt;&lt;BR /&gt;As you've already seen, you can add your own type's to supplement this list.&lt;BR /&gt;&lt;BR /&gt;Please note that Apache works out the MIME type by the content of the file being served up, not just taking the person's word based on the extension.&lt;BR /&gt;&lt;BR /&gt;The 'magic' file is of similar forat as the Magic files used for the 'file' utility, just configured to return MIME types instead of application names.</description>
    <pubDate>Wed, 12 Apr 2006 18:09:24 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2006-04-12T18:09:24Z</dc:date>
    <item>
      <title>httpd and MIME types</title>
      <link>https://community.hpe.com/t5/operating-system-linux/httpd-and-mime-types/m-p/3770444#M22829</link>
      <description>I only found two MIME types in httpd.conf&lt;BR /&gt;1, AddType application/x-compress .Z&lt;BR /&gt;2, AddType application/x-gzip .gz .tgz&lt;BR /&gt;&lt;BR /&gt;what about other MIME types ?&lt;BR /&gt;&lt;BR /&gt;It means that apache only send MIME types to the client for those files that have .gz .tgz or .Z ?&lt;BR /&gt;&lt;BR /&gt;Ok I can add other MIME types, but why only two MIME types are provided by-default ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 12 Apr 2006 02:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/httpd-and-mime-types/m-p/3770444#M22829</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-04-12T02:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: httpd and MIME types</title>
      <link>https://community.hpe.com/t5/operating-system-linux/httpd-and-mime-types/m-p/3770445#M22830</link>
      <description>Hi, &lt;BR /&gt;mime types are configured in mime.types&lt;BR /&gt;file (should be in same directory as httpd.conf -e.g. /etc/apache)&lt;BR /&gt;&lt;BR /&gt;this file is pointed to in httpd.conf:&lt;BR /&gt;&lt;IFMODULE mod_mime.c=""&gt;&lt;BR /&gt;    TypesConfig /etc/apache/mime.types&lt;BR /&gt;&lt;/IFMODULE&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;antonio.</description>
      <pubDate>Wed, 12 Apr 2006 06:29:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/httpd-and-mime-types/m-p/3770445#M22830</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2006-04-12T06:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: httpd and MIME types</title>
      <link>https://community.hpe.com/t5/operating-system-linux/httpd-and-mime-types/m-p/3770446#M22831</link>
      <description>Shalom Maaz,&lt;BR /&gt;&lt;BR /&gt;These types are provided by default. They help browsing users browsers know what to do with the files when the httpd server delivers the files.&lt;BR /&gt;&lt;BR /&gt;I do believe there are other MIME types provided with apache. You can add your own MIME types as well, though depending on the client browser configuration custom MIME types can be of limited usefulness.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://httpd.apache.org" target="_blank"&gt;http://httpd.apache.org&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Contains more infomration on this issue. &lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 12 Apr 2006 07:25:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/httpd-and-mime-types/m-p/3770446#M22831</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-04-12T07:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: httpd and MIME types</title>
      <link>https://community.hpe.com/t5/operating-system-linux/httpd-and-mime-types/m-p/3770447#M22832</link>
      <description>If you're running a RH based system, you'll already have something like these lines in '/etc/httpd/conf/httpd.conf':&lt;BR /&gt;&lt;BR /&gt;LoadModule mime_magic_module modules/mod_mime_magic.so&lt;BR /&gt;#&lt;BR /&gt;# The mod_mime_magic module allows the server to use various hints from the&lt;BR /&gt;# contents of the file itself to determine its type.  The MIMEMagicFile&lt;BR /&gt;# directive tells the module where the hint definitions are located.&lt;BR /&gt;#&lt;BR /&gt;&lt;IFMODULE mod_mime_magic.c=""&gt;&lt;BR /&gt;#   MIMEMagicFile /usr/share/magic.mime&lt;BR /&gt;    MIMEMagicFile conf/magic&lt;BR /&gt;&lt;/IFMODULE&gt;&lt;BR /&gt;&lt;BR /&gt;Andyou'll also have the file '/etc/httpd/conf/magic' (which is a magic-mime file).&lt;BR /&gt;&lt;BR /&gt;As you've already seen, you can add your own type's to supplement this list.&lt;BR /&gt;&lt;BR /&gt;Please note that Apache works out the MIME type by the content of the file being served up, not just taking the person's word based on the extension.&lt;BR /&gt;&lt;BR /&gt;The 'magic' file is of similar forat as the Magic files used for the 'file' utility, just configured to return MIME types instead of application names.</description>
      <pubDate>Wed, 12 Apr 2006 18:09:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/httpd-and-mime-types/m-p/3770447#M22832</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-04-12T18:09:24Z</dc:date>
    </item>
  </channel>
</rss>

