mod_mime.html revision af7fdf19d23dae6129abaaeb61a1f7bd74f677f5
4fe198d6f302c883b3edf100a6990b2ee4923494vboxsync<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync BGCOLOR="#FFFFFF"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync TEXT="#000000"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync LINK="#0000FF"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync VLINK="#000080"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync ALINK="#FF0000"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<!--#include virtual="header.html" -->
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncThis module is contained in the <CODE>mod_mime.c</CODE> file, and is
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsynccompiled in by default. It provides for determining the types of files
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncfrom the filename.
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncThis module is used to determine various bits of "meta information"
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncabout documents. This information relates to the content of the
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncdocument and is returned to the browser or used in content-negotiation
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncwithin the server. In addition, a "handler" can be set for a document,
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncwhich determines how the document will be processed within the server.
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncThe directives <A HREF="#addencoding">AddEncoding</A>, <A
5ffb8839e755b3d3d6a45131c530ea13f8e9a2b9vboxsyncHREF="#addlanguage">AddLanguage</A> and <A HREF="#addtype">AddType</A>
5ffb8839e755b3d3d6a45131c530ea13f8e9a2b9vboxsyncare all used to map file extensions onto the meta-information for that
4faf92053d9cec5599c0ab8577231df0f7d615b3vboxsyncfile. Respectively they set the content-encoding, handler,
0575222e3e7455c3ea1fb8f5aa7c4b58aea40a08vboxsynccontent-language and MIME-type (content-type) of documents. The
5f78e8e2cc5ea1e52a14f9a18277cd3c5c89dd5cvboxsyncdirective <A HREF="#typesconfig">TypesConfig</A> is used to specify a
5f78e8e2cc5ea1e52a14f9a18277cd3c5c89dd5cvboxsyncfile which also maps extensions onto MIME types. The directives <A
7870a295fdec1b57c4546425f2e591fd3091a7b3vboxsyncHREF="#sethandler">SetHandler</A> are used to associated all the files
7870a295fdec1b57c4546425f2e591fd3091a7b3vboxsyncin a given location (<EM>e.g.</EM>, a particular directory) onto a particular
7870a295fdec1b57c4546425f2e591fd3091a7b3vboxsyncMIME type or handler.
0be659b1e32246489fa133d069bb619ad43647e7vboxsyncNote that changing the type or encoding of a file does not change the
0be659b1e32246489fa133d069bb619ad43647e7vboxsyncvalue of the <CODE>Last-Modified</CODE> header. Thus, previously cached
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsynccopies may still be used by a client or proxy, with the previous headers.
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<A NAME="multipleext"><H2>Files with Multiple Extensions</H2></A>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncFiles can have more than one extension, and the order of the
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncextensions is <i>normally</i> irrelevant. For example, if the file
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<CODE>welcome.html.fr</CODE> maps onto content type text/html and
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsynclanguage French then the file <CODE>welcome.fr.html</CODE> will map
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsynconto exactly the same information. The only exception to this is if an
e3d1df74cd5c2d182013559f64184fdea625b8e2vboxsyncextension is given which Apache does not know how to handle. In this
682a27d94b9116c719038882487b99053985f91avboxsynccase it will "forget" about any information it obtained from
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncextensions to the left of the unknown extension. So, for example, if
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncthe extensions fr and html are mapped to the appropriate language and
b2b3dd040e6419db8733be1dca655675d3c60e04vboxsynctype but extension xxx is not assigned to anything, then the file
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<CODE>welcome.fr.xxx.html</CODE> will be associated with content-type
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncIf more than one extension is given which maps onto the same type of
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsyncmeta-information, then the one to the right will be used. For example,
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncif ".gif" maps to the MIME-type image/gif and ".html" maps to the
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsyncMIME-type text/html, then the file <CODE>welcome.gif.html</CODE> will
b2b3dd040e6419db8733be1dca655675d3c60e04vboxsyncCare should be taken when a file with multiple extensions gets
b2b3dd040e6419db8733be1dca655675d3c60e04vboxsyncassociated with both a MIME-type and a handler. This will usually
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncresult in the request being by the module associated with the
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsynchandler. For example, if the <CODE>.imap</CODE> extension is mapped to
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncthe handler "imap-file" (from mod_imap) and the <CODE>.html</CODE>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncextension is mapped to the MIME-type "text/html", then the file
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<CODE>world.imap.html</CODE> will be associated with both the
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync"imap-file" handler and "text/html" MIME-type. When it is processed,
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncthe "imap-file" handler will be used, and so it will be treated as a
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncmod_imap imagemap file.
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<!--%plaintext <?INDEX {\tt AddEncoding} directive> -->
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync><STRONG>Syntax:</STRONG></A> AddEncoding <EM>MIME-enc extension extension...</EM><BR>
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync HREF="directive-dict.html#Override"
23a9871a0529153e9acd72f2892d1daba911b620vboxsyncThe AddEncoding directive maps the given filename extensions to the
23a9871a0529153e9acd72f2892d1daba911b620vboxsyncspecified encoding type. <EM>MIME-enc</EM> is the MIME encoding to use
23a9871a0529153e9acd72f2892d1daba911b620vboxsyncfor documents containing the <EM>extension</EM>. This mapping is added
9960b537f41818c96be5b4426013af0854278fe2vboxsyncto any already in force, overriding any mappings that already exist
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<BLOCKQUOTE><CODE> AddEncoding x-gzip gz<BR> AddEncoding x-compress Z
b2b3dd040e6419db8733be1dca655675d3c60e04vboxsyncThis will cause filenames containing the .gz extension to be marked as
2fe579c330de95296cd6fb670bf159abb6dcc03dvboxsyncencoded using the x-gzip encoding, and filenames containing the .Z
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsyncextension to be marked as encoded with x-compress.<P>
23a9871a0529153e9acd72f2892d1daba911b620vboxsyncOld clients expect <CODE>x-gzip</CODE> and <CODE>x-compress</CODE>,
4c0046c5896bbe0fbff893996b7886284e0b3afdvboxsynchowever the standard dictates that they're equivalent to <CODE>gzip</CODE>
2fe579c330de95296cd6fb670bf159abb6dcc03dvboxsyncand <CODE>compress</CODE> respectively. Apache does content encoding
2fe579c330de95296cd6fb670bf159abb6dcc03dvboxsynccomparisons by ignoring any leading <CODE>x-</CODE>. When responding
2fe579c330de95296cd6fb670bf159abb6dcc03dvboxsyncwith an encoding Apache will use whatever form (<EM>i.e.</EM>, <CODE>x-foo</CODE>
2fe579c330de95296cd6fb670bf159abb6dcc03dvboxsyncor <CODE>foo</CODE>) the client requested. If the client didn't
2fe579c330de95296cd6fb670bf159abb6dcc03dvboxsyncspecifically request a particular form Apache will use the form given by
2fe579c330de95296cd6fb670bf159abb6dcc03dvboxsyncthe <CODE>AddEncoding</CODE> directive. To make this long story short,
2fe579c330de95296cd6fb670bf159abb6dcc03dvboxsyncyou should always use <CODE>x-gzip</CODE> and <CODE>x-compress</CODE>
2fe579c330de95296cd6fb670bf159abb6dcc03dvboxsyncfor these two specific encodings. More recent encodings, such as
b2b3dd040e6419db8733be1dca655675d3c60e04vboxsync<CODE>deflate</CODE> should be specified without the <CODE>x-</CODE>.
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsyncmultiple extensions</A>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync><STRONG>Syntax:</STRONG></A> AddHandler <EM>handler-name extension extension...</EM><BR>
87121e0238bb0790fe6f0aa124077a3edc43936avboxsync><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync HREF="directive-dict.html#Override"
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync HREF="directive-dict.html#Compatibility"
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync><STRONG>Compatibility:</STRONG></A> AddHandler is only available in Apache
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync1.1 and later<P>
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsync<P>AddHandler maps the filename extensions <EM>extension</EM> to the
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync<A HREF="/handler.html">handler</A> <EM>handler-name</EM>. This
87121e0238bb0790fe6f0aa124077a3edc43936avboxsyncmapping is added to any already in force, overriding any mappings that
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsyncFor example, to activate CGI scripts
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsyncwith the file extension "<CODE>.cgi</CODE>", you might use:
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsync AddHandler cgi-script cgi
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<P>Once that has been put into your srm.conf or httpd.conf file, any
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsyncfile containing the "<CODE>.cgi</CODE>" extension will be treated as a
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsyncCGI program.</P>
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync<STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
87121e0238bb0790fe6f0aa124077a3edc43936avboxsyncmultiple extensions</A>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<!--%plaintext <?INDEX {\tt AddLanguage} directive> -->
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Syntax:</STRONG></A> AddLanguage <EM>MIME-lang extension extension...</EM><BR>
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync HREF="directive-dict.html#Override"
941179b70e2f83fd1a1a398d571450e3e0de905bvboxsyncThe AddLanguage directive maps the given filename extensions to the
2c042a102824ed308044077b31cbe508ba732721vboxsyncspecified content language. <EM>MIME-lang</EM> is the MIME language of
2c042a102824ed308044077b31cbe508ba732721vboxsyncfilenames containing <EM>extension</EM>. This mapping is added to any
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncalready in force, overriding any mappings that already exist for the
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsyncAddEncoding x-compress Z<BR> AddLanguage en .en<BR> AddLanguage fr
f3e5e9688f91f9da218437106680d36450b15e21vboxsyncThen the document <CODE>xxxx.en.Z</CODE> will be treated as being a
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsynccompressed English document (as will the document
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<CODE>xxxx.Z.en</CODE>). Although the content language is reported to
2c042a102824ed308044077b31cbe508ba732721vboxsyncthe client, the browser is unlikely to use this information. The
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsyncAddLanguage directive is more useful for <A
2c042a102824ed308044077b31cbe508ba732721vboxsyncHREF="/content-negotiation.html">content negotiation</A>, where
2c042a102824ed308044077b31cbe508ba732721vboxsyncthe server returns one from several documents based on the client's
6e26ef34350571443d9da6949f75da3b30add368vboxsynclanguage preference.<P>
6e26ef34350571443d9da6949f75da3b30add368vboxsync<STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
6e26ef34350571443d9da6949f75da3b30add368vboxsyncmultiple extensions</A>
6e26ef34350571443d9da6949f75da3b30add368vboxsync<!--%plaintext <?INDEX {\tt AddType} directive> -->
6e26ef34350571443d9da6949f75da3b30add368vboxsync><STRONG>Syntax:</STRONG></A> AddType <EM>MIME-type extension extension...</EM><BR>
adf5f1f964bb309d1306e270ed8679d02bf14c23vboxsync><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
6e26ef34350571443d9da6949f75da3b30add368vboxsync HREF="directive-dict.html#Override"
6e26ef34350571443d9da6949f75da3b30add368vboxsyncThe AddType directive maps the given filename extensions onto the
6e26ef34350571443d9da6949f75da3b30add368vboxsyncspecified content type. <EM>MIME-enc</EM> is the MIME type to use for
6e26ef34350571443d9da6949f75da3b30add368vboxsyncfilenames containing <EM>extension</EM>. This mapping is added to any
6e26ef34350571443d9da6949f75da3b30add368vboxsyncalready in force, overriding any mappings that already exist for the
6e26ef34350571443d9da6949f75da3b30add368vboxsyncsame <EM>extension</EM>. This directive can be used to add mappings
6e26ef34350571443d9da6949f75da3b30add368vboxsyncHREF="#typesconfig">TypesConfig</A></CODE> directive).
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsyncIt is recommended that new MIME types be added using the AddType directive
6e26ef34350571443d9da6949f75da3b30add368vboxsyncrather than changing the <A HREF="#typesconfig">TypesConfig</A> file.<P>
6e26ef34350571443d9da6949f75da3b30add368vboxsyncNote that, unlike the NCSA httpd, this directive cannot be used to set the
6e26ef34350571443d9da6949f75da3b30add368vboxsynctype of particular files.<P>
6e26ef34350571443d9da6949f75da3b30add368vboxsync<STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
6e26ef34350571443d9da6949f75da3b30add368vboxsyncmultiple extensions</A>
2c042a102824ed308044077b31cbe508ba732721vboxsync<H2><A NAME="defaultlanguage">DefaultLanguage</A></H2>
2c042a102824ed308044077b31cbe508ba732721vboxsync<!--%plaintext <?INDEX {\tt DefaultLanguage} directive> -->
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync><STRONG>Syntax:</STRONG></A> DefaultLanguage <EM>MIME-lang</EM><BR>
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
2c042a102824ed308044077b31cbe508ba732721vboxsync HREF="directive-dict.html#Override"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsyncThe DefaultLanguage directive tells Apache that all files in the
2c042a102824ed308044077b31cbe508ba732721vboxsyncdirective's scope (<EM>e.g.</EM>, all files covered by the current
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<CODE><Directory></CODE> container) that don't have an explicit
2c042a102824ed308044077b31cbe508ba732721vboxsynclanguage extension (such as <SAMP>.fr</SAMP> or <SAMP>.de</SAMP> as
2c042a102824ed308044077b31cbe508ba732721vboxsyncconfigured by <SAMP>AddLanguage</SAMP>) should be considered to be in
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsyncthe specified <EM>MIME-lang</EM> language. This allows entire
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncdirectories to be marked as containing Dutch content, for instance,
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncwithout having to rename each file. Note that unlike using extensions
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncto specify languages, <SAMP>DefaultLanguage</SAMP> can only specify a
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncsingle language.
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncIf no <SAMP>DefaultLanguage</SAMP> directive is in force, and a file
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncdoes not have any language extensions as configured by
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<SAMP>AddLanguage</SAMP>, then that file will be considered to have no
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsynclanguage attribute.
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncmultiple extensions</A>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync><STRONG>Syntax:</STRONG></A> ForceType <EM>media type</EM><BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Context:</STRONG></A> directory, .htaccess<BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Compatibility"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Compatibility:</STRONG></A> ForceType is only available in Apache
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync1.1 and later.<P>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<P>When placed into an <CODE>.htaccess</CODE> file or a
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<CODE><Directory></CODE> or <CODE><Location></CODE> section,
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsyncthis directive forces all matching files to be served
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsyncas the content type given by <EM>media type</EM>. For example, if you
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsynchad a directory full of GIF files, but did not want to label them all with
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync".gif", you might want to use:
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<P>Note that this will override any filename extensions that might determine
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Syntax:</STRONG></A> SetHandler <EM>handler-name</EM><BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Context:</STRONG></A> directory, .htaccess<BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Compatibility"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Compatibility:</STRONG></A> SetHandler is only available in Apache
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync1.1 and later.<P>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<P>When placed into an <CODE>.htaccess</CODE> file or a
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<CODE><Directory></CODE> or <CODE><Location></CODE> section,
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncthis directive forces all matching files to be parsed through the
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncgiven by <EM>handler-name</EM>. For example, if you had a
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncdirectory you wanted to be parsed entirely as imagemap rule files,
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncregardless of extension, you might put the following into an
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync SetHandler imap-file
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<P>Another example: if you wanted to have the server display a status
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncreport whenever a URL of <CODE>http://servername/status</CODE> was
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsynccalled, you might put the following into access.conf:
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync <Location /status>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync SetHandler server-status
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync </Location>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<!--%plaintext <?INDEX {\tt TypesConfig} directive> -->
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync><STRONG>Syntax:</STRONG></A> TypesConfig <EM>filename</EM><BR>
0be659b1e32246489fa133d069bb619ad43647e7vboxsync><STRONG>Default:</STRONG></A> <CODE>TypesConfig conf/MIME.types</CODE><BR>
0be659b1e32246489fa133d069bb619ad43647e7vboxsyncThe TypesConfig directive sets the location of the MIME types configuration
0be659b1e32246489fa133d069bb619ad43647e7vboxsync<A HREF="core.html#serverroot">ServerRoot</A>. This file sets the default list of
0be659b1e32246489fa133d069bb619ad43647e7vboxsyncmappings from filename extensions to content types; changing this file is not
0be659b1e32246489fa133d069bb619ad43647e7vboxsyncrecommended. Use the <A HREF="#addtype">AddType</A> directive instead. The
0be659b1e32246489fa133d069bb619ad43647e7vboxsyncfile contains lines in the format of the arguments to an AddType command:
0be659b1e32246489fa133d069bb619ad43647e7vboxsync<BLOCKQUOTE><EM>MIME-type extension extension ...</EM></BLOCKQUOTE>
0be659b1e32246489fa133d069bb619ad43647e7vboxsyncThe extensions are lower-cased. Blank lines, and lines beginning with a hash
0be659b1e32246489fa133d069bb619ad43647e7vboxsynccharacter (`#') are ignored.<P>
0be659b1e32246489fa133d069bb619ad43647e7vboxsync<!--#include virtual="footer.html" -->