mod_mime.html.en revision 21b70e758d670601065db7b05e16441226e4e9b4
97a9a944b5887e91042b019776c41d5dd74557aferikabele<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
97a9a944b5887e91042b019776c41d5dd74557aferikabele<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive This file is generated from xml source: DO NOT EDIT
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
fe64b2ba25510d8c9dba5560a2d537763566cf40nd --><title>mod_mime - Apache HTTP Server</title><link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /><link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /><link href="/images/favicon.ico" rel="shortcut icon" /></head><body><div id="page-header"><p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p><p class="apache">Apache HTTP Server Version 2.0</p><img alt="" src="/images/feather.gif" /></div><div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div><div id="path"><a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="../">Version 2.0</a> > <a href="./">Modules</a></div><div id="page-content"><div id="preamble"><h1>Apache Module mod_mime</h1><table class="module"><tr><th><a href="module-dict.html#Description">Description:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>Associates the requested filename's extensions
fe64b2ba25510d8c9dba5560a2d537763566cf40nd with the file's behavior (handlers and filters)
fe64b2ba25510d8c9dba5560a2d537763566cf40nd and content (mime-type, language, character set and
fe64b2ba25510d8c9dba5560a2d537763566cf40nd encoding)</td></tr><tr><th><a href="module-dict.html#Status">Status:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>Base</td></tr><tr><th><a href="module-dict.html#ModuleIdentifier">Module�Identifier:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>mime_module</td></tr><tr><th><a href="module-dict.html#SourceFile">Source�File:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>mod_mime.c</td></tr></table><h3>Summary</h3>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>This module is used to associate various bits of "meta
52fff662005b1866a3ff09bb6c902800c5cc6dedjerenkrantz information" with files by their filename extensions. This
fe64b2ba25510d8c9dba5560a2d537763566cf40nd information relates the filename of the document to it's
fe64b2ba25510d8c9dba5560a2d537763566cf40nd mime-type, language, character set and encoding. This
fe64b2ba25510d8c9dba5560a2d537763566cf40nd information is sent to the browser, and participates in content
4b5981e276e93df97c34e4da05ca5cf8bbd937dand negotiation, so the user's preferences are respected when
fe64b2ba25510d8c9dba5560a2d537763566cf40nd choosing one of several possible files to serve. See
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd <code class="module"><a href="/mod/mod_negotiation.html">mod_negotiation</a></code> for more information
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd about content negotiation. </p>
4aa805f8500255bc52a4c03259fe46df10a1d07cyoshiki <p>The directives <code class="directive"><a href="#addcharset">AddCharset</a></code>, <code class="directive"><a href="#addencoding">AddEncoding</a></code>, <code class="directive"><a href="#addlanguage">AddLanguage</a></code> and <code class="directive"><a href="#addtype">AddType</a></code> are all used to map file
d972e4a0688f66b1402473dd9dacfecefa2132a8rbowen extensions onto the meta-information for that file. Respectively
dfb59c684345700bf9186b8d44936f8b1ba082ffgryzor they set the character set, content-encoding, content-language,
ecc5150d35c0dc5ee5119c2717e6660fa331abbftakashi and MIME-type (content-type) of documents. The directive <code class="directive"><a href="#typesconfig">TypesConfig</a></code> is used to specify a
ecc5150d35c0dc5ee5119c2717e6660fa331abbftakashi file which also maps extensions onto MIME types. </p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>In addition, <code class="module"><a href="/mod/mod_mime.html">mod_mime</a></code> may define the <a href="/handler.html">handler</a> and <a href="/filter.html">filters</a> that originate and process
fe64b2ba25510d8c9dba5560a2d537763566cf40nd content. The directives <code class="directive"><a href="#addhandler">AddHandler</a></code>, <code class="directive"><a href="#addoutputfilter">AddOutputFilter</a></code>, and <code class="directive"><a href="#addinputfilter">AddInputFilter</a></code> control the modules
fe64b2ba25510d8c9dba5560a2d537763566cf40nd or scripts that serve the document. The <code class="directive"><a href="#multiviewsmatch">MultiviewsMatch</a></code> directive allows
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <code class="module"><a href="/mod/mod_negotiation.html">mod_negotiation</a></code> to consider these file extensions
fe64b2ba25510d8c9dba5560a2d537763566cf40nd to be included when testing Multiviews matches.</p>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <p>While <code class="module"><a href="/mod/mod_mime.html">mod_mime</a></code> associates meta-information
fe64b2ba25510d8c9dba5560a2d537763566cf40nd with filename extensions, the <code class="module"><a href="/mod/core.html">core</a></code> server
117c1f888a14e73cdd821dc6c23eb0411144a41cnd provides directives that are used to associate all the files in a
117c1f888a14e73cdd821dc6c23eb0411144a41cnd given container (<em>e.g.</em>, <code class="directive"><a href="/mod/core.html#location"><location></a></code>, <code class="directive"><a href="/mod/core.html#directory"><directory></a></code>, or <code class="directive"><a href="/mod/core.html#files"><Files></a></code>) with particular
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd meta-information. These directives include <code class="directive"><a href="/mod/core.html#forcetype">ForceType</a></code>, <code class="directive"><a href="/mod/core.html#sethandler">SetHandler</a></code>, <code class="directive"><a href="/mod/core.html#setinputfilter">SetInputFilter</a></code>, and <code class="directive"><a href="/mod/core.html#setoutputfilter">SetOutputFilter</a></code>. The core directives
117c1f888a14e73cdd821dc6c23eb0411144a41cnd override any filename extension mappings defined in
bed3c2e56e8f3328e780200466b9d009093db468sf <code class="module"><a href="/mod/mod_mime.html">mod_mime</a></code>.</p>
117c1f888a14e73cdd821dc6c23eb0411144a41cnd <p>Note that changing the meta-information for a file does not
117c1f888a14e73cdd821dc6c23eb0411144a41cnd change the value of the <code>Last-Modified</code> header.
9597f440430d8c876dd64f5f78066804650a18ecnoodl Thus, previously cached copies may still be used by a client or
117c1f888a14e73cdd821dc6c23eb0411144a41cnd proxy, with the previous headers. If you change the
117c1f888a14e73cdd821dc6c23eb0411144a41cnd meta-information (language, content type, character set or
117c1f888a14e73cdd821dc6c23eb0411144a41cnd encoding) you may need to 'touch' affected files (updating
8559a67073808d84d85bb5dd552d4247caafe709sf their last modified date) to ensure that all visitors are
8559a67073808d84d85bb5dd552d4247caafe709sf receive the corrected content headers.</p>
117c1f888a14e73cdd821dc6c23eb0411144a41cnd</div><div id="quickview"><h3 class="directives">Directives</h3><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#addcharset">AddCharset</a></li><li><img alt="" src="/images/down.gif" /> <a href="#addencoding">AddEncoding</a></li><li><img alt="" src="/images/down.gif" /> <a href="#addhandler">AddHandler</a></li><li><img alt="" src="/images/down.gif" /> <a href="#addinputfilter">AddInputFilter</a></li><li><img alt="" src="/images/down.gif" /> <a href="#addlanguage">AddLanguage</a></li><li><img alt="" src="/images/down.gif" /> <a href="#addoutputfilter">AddOutputFilter</a></li><li><img alt="" src="/images/down.gif" /> <a href="#addtype">AddType</a></li><li><img alt="" src="/images/down.gif" /> <a href="#defaultlanguage">DefaultLanguage</a></li><li><img alt="" src="/images/down.gif" /> <a href="#modmimeusepathinfo">ModMimeUsePathInfo</a></li><li><img alt="" src="/images/down.gif" /> <a href="#multiviewsmatch">MultiviewsMatch</a></li><li><img alt="" src="/images/down.gif" /> <a href="#removecharset">RemoveCharset</a></li><li><img alt="" src="/images/down.gif" /> <a href="#removeencoding">RemoveEncoding</a></li><li><img alt="" src="/images/down.gif" /> <a href="#removehandler">RemoveHandler</a></li><li><img alt="" src="/images/down.gif" /> <a href="#removeinputfilter">RemoveInputFilter</a></li><li><img alt="" src="/images/down.gif" /> <a href="#removelanguage">RemoveLanguage</a></li><li><img alt="" src="/images/down.gif" /> <a href="#removeoutputfilter">RemoveOutputFilter</a></li><li><img alt="" src="/images/down.gif" /> <a href="#removetype">RemoveType</a></li><li><img alt="" src="/images/down.gif" /> <a href="#typesconfig">TypesConfig</a></li></ul><h3>Topics</h3><ul id="topics"><li><img alt="" src="/images/down.gif" /> <a href="#multipleext">Files with Multiple Extensions</a></li><li><img alt="" src="/images/down.gif" /> <a href="#contentencoding">Content encoding</a></li><li><img alt="" src="/images/down.gif" /> Character sets and languages</li></ul><h3>See also</h3><ul class="seealso"><li><code class="directive"><a href="/mod/mod_mime_magic.html#mimemagicfile">MimeMagicFile</a></code></li><li><code class="directive"><a href="/mod/core.html#adddefaultcharset">AddDefaultCharset</a></code></li><li><code class="directive"><a href="/mod/core.html#forcetype">ForceType</a></code></li><li><code class="directive"><a href="/mod/core.html#defaulttype">DefaultType</a></code></li><li><code class="directive"><a href="/mod/core.html#sethandler">SetHandler</a></code></li><li><code class="directive"><a href="/mod/core.html#setinputfilter">SetInputFilter</a></code></li><li><code class="directive"><a href="/mod/core.html#setoutputfilter">SetOutputFilter</a></code></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="section"><h2><a name="multipleext" id="multipleext">Files with Multiple Extensions</a></h2>
117c1f888a14e73cdd821dc6c23eb0411144a41cnd <p>Files can have more than one extension, and the order of the
117c1f888a14e73cdd821dc6c23eb0411144a41cnd extensions is <em>normally</em> irrelevant. For example, if the
e797af4d7b0cada1278d72d6c8ac77210ef78632minfrin text/html and language French then the file <code>welcome.fr.html</code>
117c1f888a14e73cdd821dc6c23eb0411144a41cnd will map onto exactly the same information. If more than one
117c1f888a14e73cdd821dc6c23eb0411144a41cnd extension is given which maps onto the same
117c1f888a14e73cdd821dc6c23eb0411144a41cnd type of meta-information, then the one to the right will be
117c1f888a14e73cdd821dc6c23eb0411144a41cnd used. For example, if ".gif" maps to the MIME-type image/gif
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener and ".html" maps to the MIME-type text/html, then the file
117c1f888a14e73cdd821dc6c23eb0411144a41cnd <code>welcome.gif.html</code> will be associated with the
117c1f888a14e73cdd821dc6c23eb0411144a41cnd <p>Care should be taken when a file with multiple extensions
117c1f888a14e73cdd821dc6c23eb0411144a41cnd gets associated with both a MIME-type and a handler. This will
117c1f888a14e73cdd821dc6c23eb0411144a41cnd usually result in the request being by the module associated
117c1f888a14e73cdd821dc6c23eb0411144a41cnd extension is mapped to the handler "imap-file" (from mod_imap)
117c1f888a14e73cdd821dc6c23eb0411144a41cnd and the <code>.html</code> extension is mapped to the MIME-type
6c45910d5394acbc3f20ab3f2615d9ed2b4e6533nd "text/html", then the file <code>world.imap.html</code> will be
117c1f888a14e73cdd821dc6c23eb0411144a41cnd associated with both the "imap-file" handler and "text/html"
117c1f888a14e73cdd821dc6c23eb0411144a41cnd MIME-type. When it is processed, the "imap-file" handler will
117c1f888a14e73cdd821dc6c23eb0411144a41cnd be used, and so it will be treated as a mod_imap imagemap
117c1f888a14e73cdd821dc6c23eb0411144a41cnd</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="section"><h2><a name="contentencoding" id="contentencoding">Content encoding</a></h2>
117c1f888a14e73cdd821dc6c23eb0411144a41cnd <p>A file of a particular MIME type can additionally be encoded a
117c1f888a14e73cdd821dc6c23eb0411144a41cnd particular way to simplify transmission over the Internet.
117c1f888a14e73cdd821dc6c23eb0411144a41cnd While this usually will refer to compression, such as
2b6565aedca9e9c10691b12fd2f3689bf4c85bc7jim <code>gzip</code>, it can also refer to encryption, such a
2b6565aedca9e9c10691b12fd2f3689bf4c85bc7jim <code>pgp</code> or to an encoding such as UUencoding, which is
6beba165aeced2ca77a6f1593ee08c47a32099efcovener designed for transmitting a binary file in an ASCII (text)
709e3a21ba73b8433462959cd56c773454b34441trawick format.</p>
117c1f888a14e73cdd821dc6c23eb0411144a41cnd The Content-Encoding entity-header field is used as a
117c1f888a14e73cdd821dc6c23eb0411144a41cnd modifier to the media-type. When present, its value indicates
117c1f888a14e73cdd821dc6c23eb0411144a41cnd what additional content coding has been applied to the
e797af4d7b0cada1278d72d6c8ac77210ef78632minfrin resource, and thus what decoding mechanism must be applied in
117c1f888a14e73cdd821dc6c23eb0411144a41cnd order to obtain the media-type referenced by the Content-Type
117c1f888a14e73cdd821dc6c23eb0411144a41cnd header field. The Content-Encoding is primarily used to allow
117c1f888a14e73cdd821dc6c23eb0411144a41cnd a document to be compressed without losing the identity of
117c1f888a14e73cdd821dc6c23eb0411144a41cnd its underlying media type.
117c1f888a14e73cdd821dc6c23eb0411144a41cnd <p>By using more than one file extension (see <a href="#multipleext">section above about multiple file
117c1f888a14e73cdd821dc6c23eb0411144a41cnd extensions</a>), you can indicate that a file is of a
b00fe3c3354db01001b8eddfd9b88441380f837dwrowe <p>For example, you may have a file which is a Microsoft Word
e797af4d7b0cada1278d72d6c8ac77210ef78632minfrin document, which is pkzipped to reduce its size. If the
117c1f888a14e73cdd821dc6c23eb0411144a41cnd <code>.doc</code> extension is associated with the Microsoft
117c1f888a14e73cdd821dc6c23eb0411144a41cnd associated with the pkzip file encoding, then the file
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <code>Resume.doc.zip</code>would be known to be a pkzip'ed Word
fe64b2ba25510d8c9dba5560a2d537763566cf40nd document.</p>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <p>Apache send a <code>Content-encoding</code> header with the
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna resource, in order to tell the client browser about the
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna encoding method.</p>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <div class="example"><p><code>Content-encoding: pkzip</code></p></div>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="section"><h2>Character sets and languages</h2>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <p>In addition to file type and the file encoding,
d972e4a0688f66b1402473dd9dacfecefa2132a8rbowen another important piece of information is what language a
d972e4a0688f66b1402473dd9dacfecefa2132a8rbowen particular document is in, and in what character set the file
d972e4a0688f66b1402473dd9dacfecefa2132a8rbowen should be displayed. For example, the document might be written
d972e4a0688f66b1402473dd9dacfecefa2132a8rbowen in the Vietnamese alphabet, or in Cyrillic, and should be
d972e4a0688f66b1402473dd9dacfecefa2132a8rbowen displayed as such. This information, also, is transmitted in
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor HTTP headers.</p>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe <p>The character set, language encoding and mime type are all
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe used in the process of content negotiation (See
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <code class="module"><a href="/mod/mod_negotiation.html">mod_negotiation</a></code>) to determine
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe which document to give to the client, when there are
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe alternative documents in more than one character set, language,
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe encoding or mime type. All filename extensions associations
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna created with <code class="module"><a href="/mod/AddCharset.html">AddCharset</a></code>, <code class="module"><a href="/mod/AddEncoding.html">AddEncoding</a></code>,
6fad623c3cc52b4a84d4d36538f6eed886f49f98covener <code class="module"><a href="/mod/AddLanguage.html">AddLanguage</a></code> and <code class="module"><a href="/mod/AddType.html">AddType</a></code> directives
6fad623c3cc52b4a84d4d36538f6eed886f49f98covener (and extensions listed in the <code class="module"><a href="/mod/MimeMagicFile.html">MimeMagicFile</a></code>)
6fad623c3cc52b4a84d4d36538f6eed886f49f98covener participate in this select process. Filename extensions that
6fad623c3cc52b4a84d4d36538f6eed886f49f98covener are only associated using the <code class="module"><a href="/mod/AddHandler.html">AddHandler</a></code>,
6fad623c3cc52b4a84d4d36538f6eed886f49f98covener <code class="module"><a href="/mod/AddInputFilter.html">AddInputFilter</a></code> or <code class="module"><a href="/mod/AddOutputFilter.html">AddOutputFilter</a></code>
6fad623c3cc52b4a84d4d36538f6eed886f49f98covener directives may be included or excluded from matching by using
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna the <code class="directive">MultiviewsMatch</code> directive.</p>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <p>To convey this further information, Apache optionally sends
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna a <code>Content-Language</code> header, to specify the language
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor that the document is in, and can append additional information
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor onto the <code>Content-Type</code> header to indicate the
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna particular character set that should be used to correctly
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor render the information.</p>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquernaContent-Language: en, fr<br />
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <p>The language specification is the two-letter abbreviation
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna for the language. The <code>charset</code> is the name of the
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna particular character set which should be used.</p>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="AddCharset" id="AddCharset">AddCharset</a> <a name="addcharset" id="addcharset">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor to the specified content charset</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna[<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna </a></th><td>server config, virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Override">Override:
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe </a></th><td>FileInfo</td></tr><tr><th><a href="directive-dict.html#Status">Status:
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe <p>The AddCharset directive maps the given filename extensions
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe to the specified content charset. <em>charset</em> is the MIME
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe charset parameter of filenames containing <em>extension</em>.
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe This mapping is added to any already in force, overriding any
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe mappings that already exist for the same <em>extension</em>.</p>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe AddLanguage ja .ja<br />
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe AddCharset EUC-JP .euc<br />
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe AddCharset ISO-2022-JP .jis<br />
d972e4a0688f66b1402473dd9dacfecefa2132a8rbowen AddCharset SHIFT_JIS .sjis
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe <p>Then the document <code>xxxx.ja.jis</code> will be treated
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor as being a Japanese document whose charset is ISO-2022-JP (as
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna will the document <code>xxxx.jis.ja</code>). The AddCharset
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna directive is useful for both to inform the client about the
9f19223e8fb7b99f5f1cc02c8c3c2c6567793262rbowen character encoding of the document so that the document can be
9f19223e8fb7b99f5f1cc02c8c3c2c6567793262rbowen interpreted and displayed appropriately, and for <a href="/content-negotiation.html">content negotiation</a>,
9f19223e8fb7b99f5f1cc02c8c3c2c6567793262rbowen where the server returns one from several documents based on
9f19223e8fb7b99f5f1cc02c8c3c2c6567793262rbowen the client's charset preference.</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>The <em>extension</em> argument is case-insensitive, and can
fe64b2ba25510d8c9dba5560a2d537763566cf40nd be specified with or without a leading dot.</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<h3>See also</h3><ul><li><code class="module"><a href="/mod/mod_negotiation.html">mod_negotiation</a></code></li><li><code class="directive"><a href="/mod/core.html#adddefaultcharset">AddDefaultCharset</a></code></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="AddEncoding" id="AddEncoding">AddEncoding</a> <a name="addencoding" id="addencoding">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd to the specified encoding type</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <em>MIME-enc extension</em> [<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>server config, virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Override">Override:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>FileInfo</td></tr><tr><th><a href="directive-dict.html#Status">Status:
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>The AddEncoding directive maps the given filename extensions
06ba4a61654b3763ad65f52283832ebf058fdf1cslive to the specified encoding type. <em>MIME-enc</em> is the MIME
06ba4a61654b3763ad65f52283832ebf058fdf1cslive encoding to use for documents containing the
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <em>extension</em>. This mapping is added to any already in
fb77c505254b6e9c925e23e734463e87574f8f40kess force, overriding any mappings that already exist for the same
06ba4a61654b3763ad65f52283832ebf058fdf1cslive AddEncoding x-gzip .gz<br />
06ba4a61654b3763ad65f52283832ebf058fdf1cslive AddEncoding x-compress .Z
fb77c505254b6e9c925e23e734463e87574f8f40kess <p>This will cause filenames containing the .gz extension to be
06ba4a61654b3763ad65f52283832ebf058fdf1cslive marked as encoded using the x-gzip encoding, and filenames
06ba4a61654b3763ad65f52283832ebf058fdf1cslive containing the .Z extension to be marked as encoded with
06ba4a61654b3763ad65f52283832ebf058fdf1cslive x-compress. </p>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <code>x-compress</code>, however the standard dictates that
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <code>compress</code> respectively. Apache does content
06ba4a61654b3763ad65f52283832ebf058fdf1cslive encoding comparisons by ignoring any leading <code>x-</code>.
06ba4a61654b3763ad65f52283832ebf058fdf1cslive When responding with an encoding Apache will use whatever form
fb77c505254b6e9c925e23e734463e87574f8f40kess (<em>i.e.</em>, <code>x-foo</code> or <code>foo</code>) the
06ba4a61654b3763ad65f52283832ebf058fdf1cslive client requested. If the client didn't specifically request a
06ba4a61654b3763ad65f52283832ebf058fdf1cslive particular form Apache will use the form given by the
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <code>AddEncoding</code> directive. To make this long story
fb77c505254b6e9c925e23e734463e87574f8f40kess <code>x-compress</code> for these two specific encodings. More
06ba4a61654b3763ad65f52283832ebf058fdf1cslive recent encodings, such as <code>deflate</code> should be
fb77c505254b6e9c925e23e734463e87574f8f40kess <p>The <em>extension</em> argument is case-insensitive, and can
06ba4a61654b3763ad65f52283832ebf058fdf1cslive be specified with or without a leading dot.</p>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="AddHandler" id="AddHandler">AddHandler</a> <a name="addhandler" id="addhandler">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
fb77c505254b6e9c925e23e734463e87574f8f40kessto the specified handler</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <em>handler-name extension</em> [<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
fb77c505254b6e9c925e23e734463e87574f8f40kess </a></th><td>server config, virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Override">Override:
fb77c505254b6e9c925e23e734463e87574f8f40kess </a></th><td>FileInfo</td></tr><tr><th><a href="directive-dict.html#Status">Status:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
130d299c4b2b15be45532a176604c71fdc7bea5bnd<p>Files having the name <em>extension</em> will be served by the
130d299c4b2b15be45532a176604c71fdc7bea5bndspecified <a href="/handler.html">handler-name</a>. This mapping is
130d299c4b2b15be45532a176604c71fdc7bea5bndadded to any already in force, overriding any mappings that already
130d299c4b2b15be45532a176604c71fdc7bea5bndexist for the same <em>extension</em>. For example, to activate CGI
130d299c4b2b15be45532a176604c71fdc7bea5bndscripts with the file extension "<code>.cgi</code>", you might
130d299c4b2b15be45532a176604c71fdc7bea5bnd AddHandler cgi-script .cgi
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>Once that has been put into your srm.conf or httpd.conf
fe64b2ba25510d8c9dba5560a2d537763566cf40nd file, any file containing the "<code>.cgi</code>" extension
fe64b2ba25510d8c9dba5560a2d537763566cf40nd will be treated as a CGI program.</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>The <em>extension</em> argument is case-insensitive, and can
fe64b2ba25510d8c9dba5560a2d537763566cf40nd be specified with or without a leading dot.</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<h3>See also</h3><ul><li><code class="directive"><a href="/mod/core.html#sethandler">SetHandler</a></code></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="AddInputFilter" id="AddInputFilter">AddInputFilter</a> <a name="addinputfilter" id="addinputfilter">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd to the filters that will process
fe64b2ba25510d8c9dba5560a2d537763566cf40nd client requests</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
ff797e743eb73c1d45b08158aa6b288c2d0c46eeslive [<em>extension</em> ...]</td></tr><tr><th><a href="directive-dict.html#Context">Context:
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess </a></th><td>server config, virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Status">Status:
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd is only available in Apache 2.0.26 and later.</td></tr></table>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>AddInputFilter maps the filename extensions <em>extension</em>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive to the <a href="/filter.html">filters</a> which will process
06ba4a61654b3763ad65f52283832ebf058fdf1cslive client requests and POST input when they are received by the
06ba4a61654b3763ad65f52283832ebf058fdf1cslive server. This is in addition to any filters defined elsewhere,
06ba4a61654b3763ad65f52283832ebf058fdf1cslive including the <a href="core.html#setinputfilter">SetInputFilter</a> directive.
06ba4a61654b3763ad65f52283832ebf058fdf1cslive This mapping is merged over any already in force, overriding any
06ba4a61654b3763ad65f52283832ebf058fdf1cslive mappings that already exist for the same <em>extension</em>.</p>
130d299c4b2b15be45532a176604c71fdc7bea5bnd <p>If more than one filter is specified, they must be separated
130d299c4b2b15be45532a176604c71fdc7bea5bnd by semicolons in the order in which they should process the
130d299c4b2b15be45532a176604c71fdc7bea5bnd content. Both the filter and <em>extension</em> arguments are
130d299c4b2b15be45532a176604c71fdc7bea5bnd case-insensitive, and the extension may be specified with or
130d299c4b2b15be45532a176604c71fdc7bea5bnd without a leading dot.</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="AddLanguage" id="AddLanguage">AddLanguage</a> <a name="addlanguage" id="addlanguage">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
fe64b2ba25510d8c9dba5560a2d537763566cf40ndto the specified content language</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <em>MIME-lang extension</em> [<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>server config, virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Override">Override:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>FileInfo</td></tr><tr><th><a href="directive-dict.html#Status">Status:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>The AddLanguage directive maps the given filename extension
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd to the specified content language. <em>MIME-lang</em> is the
627c978514c54179736d152923478be7c8707f9bnd MIME language of filenames containing <em>extension</em>. This
fe64b2ba25510d8c9dba5560a2d537763566cf40nd mapping is added to any already in force, overriding any
fe64b2ba25510d8c9dba5560a2d537763566cf40nd mappings that already exist for the same
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd AddEncoding x-compress .Z<br />
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd AddLanguage en .en<br />
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd AddLanguage fr .fr
888b616027180cc8aaa4d2bee5ecc6acec175bc5nd <p>Then the document <code>xxxx.en.Z</code> will be treated as
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd being a compressed English document (as will the document
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd <code>xxxx.Z.en</code>). Although the content language is
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd reported to the client, the browser is unlikely to use this
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd information. The AddLanguage directive is more useful for <a href="/content-negotiation.html">content negotiation</a>,
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd where the server returns one from several documents based on
604c89126c27104f659d7a51b0113e3bd435faf8fielding the client's language preference.</p>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>If multiple language assignments are made for the same
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd extension, the last one encountered is the one that is used.
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd That is, for the case of:</p>
888b616027180cc8aaa4d2bee5ecc6acec175bc5nd AddLanguage en .en<br />
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd AddLanguage en-uk .en<br />
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd AddLanguage en-us .en
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd <p>documents with the extension "<code>.en</code>" would be
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd <p>The <em>extension</em> argument is case-insensitive, and can
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd be specified with or without a leading dot.</p>
5224ff8eae5156a05f676f1dad8add2e2f2efe1dnd<h3>See also</h3><ul><li><code class="module"><a href="/mod/mod_negotiation.html">mod_negotiation</a></code></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="AddOutputFilter" id="AddOutputFilter">AddOutputFilter</a> <a name="addoutputfilter" id="addoutputfilter">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
5224ff8eae5156a05f676f1dad8add2e2f2efe1dndextensions to the filters that will process
5224ff8eae5156a05f676f1dad8add2e2f2efe1dndresponses from the server</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd [<em>extension</em> ...]</td></tr><tr><th><a href="directive-dict.html#Context">Context:
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd </a></th><td>server config, virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Override">Override:
9583adab6bc4b3758e41963c905d9dad9f067131nd </a></th><td /></tr><tr><th><a href="directive-dict.html#Status">Status:
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
2509f1cd3be884abbe4852e15b8da00bebaad5b1poirier </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd is only available in Apache 2.0.26 and later.</td></tr></table>
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd <p>The <code class="directive">AddOutputFilter</code> directive maps the
2509f1cd3be884abbe4852e15b8da00bebaad5b1poirier filename extensions <em>extension</em> to the <a href="/filter.html">filters</a> which will process responses
2509f1cd3be884abbe4852e15b8da00bebaad5b1poirier from the server before they are sent to the client. This is in
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd addition to any filters defined elsewhere, including the
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd <code class="directive"><a href="/mod/core.html#setoutputfilter">SetOutputFilter</a></code>
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd directive. This mapping is merged over any already in force,
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd overriding any mappings that already exist for the same
2509f1cd3be884abbe4852e15b8da00bebaad5b1poirier <p>For example, the following configuration will process all
2509f1cd3be884abbe4852e15b8da00bebaad5b1poirier .shtml files for server-side includes and will then compress
2509f1cd3be884abbe4852e15b8da00bebaad5b1poirier the output using <code class="module"><a href="/mod/mod_deflate.html">mod_deflate</a></code>.</p>
2509f1cd3be884abbe4852e15b8da00bebaad5b1poirier AddOutputFilter INCLUDES;DEFLATE shtml
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd <p>If more than one filter is specified, they must be separated
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd by semicolons in the order in which they should process the
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd content. Both the filter and <em>extension</em> arguments are
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd case-insensitive, and the extension may be specified with or
2509f1cd3be884abbe4852e15b8da00bebaad5b1poirier without a leading dot.</p>
2509f1cd3be884abbe4852e15b8da00bebaad5b1poirier<h3>See also</h3><ul><li><code class="directive"><a href="#removeoutputfilter">RemoveOutputFilter</a></code></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="AddType" id="AddType">AddType</a> <a name="addtype" id="addtype">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
4335f1cbf345c91bb996eec540c11ba8ce5d4268ndonto the specified content type</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd extension</em> [<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd </a></th><td>server config, virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Override">Override:
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd </a></th><td>FileInfo</td></tr><tr><th><a href="directive-dict.html#Status">Status:
4335f1cbf345c91bb996eec540c11ba8ce5d4268nd </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>The AddType directive maps the given filename extensions onto
fe64b2ba25510d8c9dba5560a2d537763566cf40nd the specified content type. <em>MIME-type</em> is the MIME type to
627c978514c54179736d152923478be7c8707f9bnd use for filenames containing <em>extension</em>. This mapping is
fb77c505254b6e9c925e23e734463e87574f8f40kess added to any already in force, overriding any mappings that
fe64b2ba25510d8c9dba5560a2d537763566cf40nd already exist for the same <em>extension</em>. This directive can
6f7c18e70781deff3d1129774221de81b43c828end be used to add mappings not listed in the MIME types file (see the
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <code class="directive"><a href="#typesconfig">TypesConfig</a></code>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd directive).</p>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <div class="note">It is recommended that new MIME types be added using the
10673857794a4b3d9568ca2d983722a87ed352f1rbowen AddType directive rather than changing the
fb77c505254b6e9c925e23e734463e87574f8f40kess <code class="directive">TypesConfig</code> file. </div>
ed0dae472b518c553c923a86fb4322d4c50d86a6nd <p>The <em>extension</em> argument is case-insensitive, and can
10673857794a4b3d9568ca2d983722a87ed352f1rbowen be specified with or without a leading dot.</p>
bed3c2e56e8f3328e780200466b9d009093db468sf<h3>See also</h3><ul><li><code class="directive"><a href="/mod/core.html#defaulttype">DefaultType</a></code></li><li><code class="directive"><a href="/mod/core.html#forcetype">ForceType</a></code></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="DefaultLanguage" id="DefaultLanguage">DefaultLanguage</a> <a name="defaultlanguage" id="defaultlanguage">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
bed3c2e56e8f3328e780200466b9d009093db468sfspecified language</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <em>MIME-lang</em></td></tr><tr><th><a href="directive-dict.html#Context">Context:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive </a></th><td>server config, virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Override">Override:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive </a></th><td>FileInfo</td></tr><tr><th><a href="directive-dict.html#Status">Status:
fb77c505254b6e9c925e23e734463e87574f8f40kess </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive is only available in Apache 1.3.4 and later.</td></tr></table>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>The DefaultLanguage directive tells Apache that all files in
06ba4a61654b3763ad65f52283832ebf058fdf1cslive the directive's scope (<em>e.g.</em>, all files covered by the
06ba4a61654b3763ad65f52283832ebf058fdf1cslive current <code><Directory></code> container) that don't
06ba4a61654b3763ad65f52283832ebf058fdf1cslive have an explicit language extension (such as <code>.fr</code>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive or <code>.de</code> as configured by <code>AddLanguage</code>)
1f53e295ebd19aed1767d12da7abfab9936c148cjerenkrantz should be considered to be in the specified <em>MIME-lang</em>
1f53e295ebd19aed1767d12da7abfab9936c148cjerenkrantz language. This allows entire directories to be marked as
cb3a1082aec4b3b4f4ed238c93c3cc54933a7f0end containing Dutch content, for instance, without having to
9335f6d807d76d60e54af4ededdebebddb3e3d13noodl rename each file. Note that unlike using extensions to specify
9335f6d807d76d60e54af4ededdebebddb3e3d13noodl languages, <code>DefaultLanguage</code> can only specify a
06ba4a61654b3763ad65f52283832ebf058fdf1cslive single language.</p>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>If no <code>DefaultLanguage</code> directive is in force,
06ba4a61654b3763ad65f52283832ebf058fdf1cslive and a file does not have any language extensions as configured
604c89126c27104f659d7a51b0113e3bd435faf8fielding by <code>AddLanguage</code>, then that file will be considered
604c89126c27104f659d7a51b0113e3bd435faf8fielding to have no language attribute.</p>
604c89126c27104f659d7a51b0113e3bd435faf8fieldingDefaultLanguage en
604c89126c27104f659d7a51b0113e3bd435faf8fielding<h3>See also</h3><ul><li><code class="module"><a href="/mod/mod_negotiation.html">mod_negotiation</a></code></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="ModMimeUsePathInfo" id="ModMimeUsePathInfo">ModMimeUsePathInfo</a> <a name="modmimeusepathinfo" id="modmimeusepathinfo">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
604c89126c27104f659d7a51b0113e3bd435faf8fielding </a></th><td>Tells mod_mime to treat path_info components as part of the filename</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
909ce17e2bd0faef7b1c294f2307f009793fd493nd </a></th><td>ModMimeUsePathInfo On|Off</td></tr><tr><th><a href="directive-dict.html#Context">Context:
909ce17e2bd0faef7b1c294f2307f009793fd493nd </a></th><td>server config, virtual host, directory, location, .htaccess</td></tr><tr><th><a href="directive-dict.html#Override">Override:
909ce17e2bd0faef7b1c294f2307f009793fd493nd </a></th><td>FileInfo</td></tr><tr><th><a href="directive-dict.html#Status">Status:
909ce17e2bd0faef7b1c294f2307f009793fd493nd </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive </a></th><td>Available in Apache 2.0.41 and later</td></tr></table>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>The ModMimeUsePathInfo directive is used to combine the filename with
06ba4a61654b3763ad65f52283832ebf058fdf1cslive the path_info URL component to apply mod_mime's directives to the
97a9a944b5887e91042b019776c41d5dd74557aferikabele request. The default value is 'Off' - therefore, the path_info
97a9a944b5887e91042b019776c41d5dd74557aferikabele component is ignored.
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>This directive is recommended when you have a virtual filesystem.</p>
06ba4a61654b3763ad65f52283832ebf058fdf1csliveModMimeUsePathInfo On
8e31885fc494b603e0650113dde9e29d1b1d2602maczniak <p>If you have a request for /bar/foo.html where /bar is a Location and
06ba4a61654b3763ad65f52283832ebf058fdf1cslive ModMimeUsePathInfo is on, mod_mime will treat the incoming request as
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <code>AddOutputFilter INCLUDES .shtml</code> will add the INCLUDES
97a9a944b5887e91042b019776c41d5dd74557aferikabele filter to the request. If ModMimeUsePathInfo is not set, the includes
8e31885fc494b603e0650113dde9e29d1b1d2602maczniak filter will not be added.
a011221d1a3bfb6ec07a3596c6dc962c58041ee6covener</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="MultiviewsMatch" id="MultiviewsMatch">MultiviewsMatch</a> <a name="multiviewsmatch" id="multiviewsmatch">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
a011221d1a3bfb6ec07a3596c6dc962c58041ee6covener </a></th><td>The types of files that will be included when
2b6565aedca9e9c10691b12fd2f3689bf4c85bc7jimsearching for a matching file with MultiViews</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
a011221d1a3bfb6ec07a3596c6dc962c58041ee6covener <em>[NegotiatedOnly] [Handlers] [Filters] [Any]</em></td></tr><tr><th><a href="directive-dict.html#Context">Context:
a011221d1a3bfb6ec07a3596c6dc962c58041ee6covener </a></th><td>server config, virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Override">Override:
a011221d1a3bfb6ec07a3596c6dc962c58041ee6covener </a></th><td>FileInfo</td></tr><tr><th><a href="directive-dict.html#Status">Status:
a011221d1a3bfb6ec07a3596c6dc962c58041ee6covener </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
a011221d1a3bfb6ec07a3596c6dc962c58041ee6covener </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>MultiviewsMatch permits three different behaviors for
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <a href="mod_negotiation.html">mod_negotiation</a>'s Multiviews
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd feature. Multiviews allows a request for a file, e.g. index.html,
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd to match any negotiated extensions following the base request,
ed0dae472b518c553c923a86fb4322d4c50d86a6nd <p>The NegotiatedOnly option provides that every extension following
ed0dae472b518c553c923a86fb4322d4c50d86a6nd the base name must correlate to a recognized mod_mime extension for
ed0dae472b518c553c923a86fb4322d4c50d86a6nd content negotation, e.g. Charset, Content-Type, Language, or
da637bcae7b6e150470e701af29da5604a34a17erbowen Encoding. This is the strictest implementation with the fewest
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor unexpected side effects, and is the default behavior.</p>
da637bcae7b6e150470e701af29da5604a34a17erbowen <p>To include extensions associated with Handlers and/or Filters,
da637bcae7b6e150470e701af29da5604a34a17erbowen set the MultiviewsMatch directive to either Handlers, Filters, or
da637bcae7b6e150470e701af29da5604a34a17erbowen both option keywords. If all other factors are equal, the smallest
da637bcae7b6e150470e701af29da5604a34a17erbowen file will be served, e.g. in deciding between index.html.cgi of 500
da637bcae7b6e150470e701af29da5604a34a17erbowen characters and index.html.pl of 1000 bytes, the .cgi file would win
7802d43d20007fa575e43b6ae77d5177ceffdb71sf in this example. Users of .asis files might prefer to use the
7802d43d20007fa575e43b6ae77d5177ceffdb71sf Handler option, if .asis files are associated with the asis-handler.</p>
7802d43d20007fa575e43b6ae77d5177ceffdb71sf <p>You may finally allow Any extensions to match, even if mod_mime
7802d43d20007fa575e43b6ae77d5177ceffdb71sf doesn't recognize the extension. This was the behavior in Apache 1.3,
7802d43d20007fa575e43b6ae77d5177ceffdb71sf and can cause unpredicatable results, such as serving .old or .bak
7802d43d20007fa575e43b6ae77d5177ceffdb71sf files the webmaster never expected to be served.</p>
bed3c2e56e8f3328e780200466b9d009093db468sf <p>For example, the following configuration will allow handlers
bed3c2e56e8f3328e780200466b9d009093db468sf and filters to participate in Multviews, but will exclude unknown
bed3c2e56e8f3328e780200466b9d009093db468sf files:</p>
bed3c2e56e8f3328e780200466b9d009093db468sfMultiviewsMatch Handlers Filters
bed3c2e56e8f3328e780200466b9d009093db468sf<h3>See also</h3><ul><li><code class="directive"><a href="/mod/core.html#options">Options</a></code></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="RemoveCharset" id="RemoveCharset">RemoveCharset</a> <a name="removecharset" id="removecharset">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
bed3c2e56e8f3328e780200466b9d009093db468sf </a></th><td>Removes any character set associations for a set of file
bed3c2e56e8f3328e780200466b9d009093db468sfextensions</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
bed3c2e56e8f3328e780200466b9d009093db468sf <em>extension</em> [<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
bed3c2e56e8f3328e780200466b9d009093db468sf </a></th><td>virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Status">Status:
bed3c2e56e8f3328e780200466b9d009093db468sf </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
bed3c2e56e8f3328e780200466b9d009093db468sf </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
bed3c2e56e8f3328e780200466b9d009093db468sf only available in Apache 2.0.24 and later.</td></tr></table>
bed3c2e56e8f3328e780200466b9d009093db468sf character set associations for files with the given extensions.
bed3c2e56e8f3328e780200466b9d009093db468sf This allows <code>.htaccess</code> files in subdirectories to
bed3c2e56e8f3328e780200466b9d009093db468sf undo any associations inherited from parent directories or the
bed3c2e56e8f3328e780200466b9d009093db468sf server config files.</p>
bed3c2e56e8f3328e780200466b9d009093db468sf <p>The <em>extension</em> argument is case-insensitive, and can
bed3c2e56e8f3328e780200466b9d009093db468sf be specified with or without a leading dot.</p>
bed3c2e56e8f3328e780200466b9d009093db468sfRemoveCharset .html .shtml
bed3c2e56e8f3328e780200466b9d009093db468sf</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="RemoveEncoding" id="RemoveEncoding">RemoveEncoding</a> <a name="removeencoding" id="removeencoding">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
bed3c2e56e8f3328e780200466b9d009093db468sf </a></th><td>Removes any content encoding associations for a set of file
bed3c2e56e8f3328e780200466b9d009093db468sfextensions</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
bed3c2e56e8f3328e780200466b9d009093db468sf <em>extension</em> [<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
bed3c2e56e8f3328e780200466b9d009093db468sf </a></th><td>virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Status">Status:
bed3c2e56e8f3328e780200466b9d009093db468sf </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
bed3c2e56e8f3328e780200466b9d009093db468sf </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
bed3c2e56e8f3328e780200466b9d009093db468sf is only available in Apache 1.3.13 and later.</td></tr></table>
bed3c2e56e8f3328e780200466b9d009093db468sf encoding associations for files with the given extensions. This
bed3c2e56e8f3328e780200466b9d009093db468sf allows <code>.htaccess</code> files in subdirectories to undo
bed3c2e56e8f3328e780200466b9d009093db468sf any associations inherited from parent directories or the
bed3c2e56e8f3328e780200466b9d009093db468sf server config files. An example of its use might be:</p>
bed3c2e56e8f3328e780200466b9d009093db468sfAddEncoding x-gzip .gz
bed3c2e56e8f3328e780200466b9d009093db468sf<Files *.gz.asc>
bed3c2e56e8f3328e780200466b9d009093db468sf RemoveEncoding .gz
fe64b2ba25510d8c9dba5560a2d537763566cf40nd</Files>
bed3c2e56e8f3328e780200466b9d009093db468sf <p>This will cause <code>foo.gz</code> to be marked as being
fe64b2ba25510d8c9dba5560a2d537763566cf40nd encoded with the gzip method, but <code>foo.gz.asc</code> as an
fe64b2ba25510d8c9dba5560a2d537763566cf40nd unencoded plaintext file.</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p><strong>Note:</strong>RemoveEncoding directives are processed
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <em>after</em> any AddEncoding directives, so it is possible they
fe64b2ba25510d8c9dba5560a2d537763566cf40nd may undo the effects of the latter if both occur within the
fe64b2ba25510d8c9dba5560a2d537763566cf40nd same directory configuration.</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>The <em>extension</em> argument is case-insensitive, and can
fb77c505254b6e9c925e23e734463e87574f8f40kess be specified with or without a leading dot.</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="RemoveHandler" id="RemoveHandler">RemoveHandler</a> <a name="removehandler" id="removehandler">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>Removes any handler associations for a set of file
fe64b2ba25510d8c9dba5560a2d537763566cf40ndextensions</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
c985aca104389df30d6ec0a637ce0ccaac904362nd <em>extension</em> [<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Status">Status:
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
fb77c505254b6e9c925e23e734463e87574f8f40kess </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess only available in Apache 1.3.4 and later.</td></tr></table>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>The <code>RemoveHandler</code> directive removes any handler
fe64b2ba25510d8c9dba5560a2d537763566cf40nd associations for files with the given extensions. This allows
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <code>.htaccess</code> files in subdirectories to undo any
fe64b2ba25510d8c9dba5560a2d537763566cf40nd associations inherited from parent directories or the server
fe64b2ba25510d8c9dba5560a2d537763566cf40nd config files. An example of its use might be:</p>
fb77c505254b6e9c925e23e734463e87574f8f40kessAddHandler server-parsed .html
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<div class="example"><h3>/foo/bar/.htaccess:</h3><p><code>
fe64b2ba25510d8c9dba5560a2d537763566cf40ndRemoveHandler .html
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>This has the effect of returning <code>.html</code> files in
06ba4a61654b3763ad65f52283832ebf058fdf1cslive the <code>/foo/bar</code> directory to being treated as normal
5bb5fba250bf526bc51d13b25378d54acb93c1cbnoodl files, rather than as candidates for parsing (see the <a href="mod_include.html"><code>mod_include</code></a>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive module).</p>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>The <em>extension</em> argument is case-insensitive, and can
06ba4a61654b3763ad65f52283832ebf058fdf1cslive be specified with or without a leading dot.</p>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="RemoveInputFilter" id="RemoveInputFilter">RemoveInputFilter</a> <a name="removeinputfilter" id="removeinputfilter">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive </a></th><td>Removes any input filter associations for a set of file
06ba4a61654b3763ad65f52283832ebf058fdf1csliveextensions</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <em>extension</em> [<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive </a></th><td>virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Status">Status:
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </a></th><td>RemoveInputFilter is only available in Apache
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>The <code>RemoveInputFilter</code> directive removes any
06ba4a61654b3763ad65f52283832ebf058fdf1cslive input filter associations for files with the given extensions.
06ba4a61654b3763ad65f52283832ebf058fdf1cslive This allows <code>.htaccess</code> files in subdirectories to
06ba4a61654b3763ad65f52283832ebf058fdf1cslive undo any associations inherited from parent directories or the
06ba4a61654b3763ad65f52283832ebf058fdf1cslive server config files.</p>
fb77c505254b6e9c925e23e734463e87574f8f40kess <p>The <em>extension</em> argument is case-insensitive, and can
fb77c505254b6e9c925e23e734463e87574f8f40kess be specified with or without a leading dot.</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="RemoveLanguage" id="RemoveLanguage">RemoveLanguage</a> <a name="removelanguage" id="removelanguage">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>Removes any language associations for a set of file
fe64b2ba25510d8c9dba5560a2d537763566cf40ndextensions</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
604c89126c27104f659d7a51b0113e3bd435faf8fielding <em>extension</em> [<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
604c89126c27104f659d7a51b0113e3bd435faf8fielding </a></th><td>virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Status">Status:
604c89126c27104f659d7a51b0113e3bd435faf8fielding </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
604c89126c27104f659d7a51b0113e3bd435faf8fielding </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
604c89126c27104f659d7a51b0113e3bd435faf8fielding is only available in Apache 2.0.24 and later.</td></tr></table>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd language associations for files with the given extensions. This
fe64b2ba25510d8c9dba5560a2d537763566cf40nd allows <code>.htaccess</code> files in subdirectories to undo
fe64b2ba25510d8c9dba5560a2d537763566cf40nd any associations inherited from parent directories or the
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen server config files.</p>
604c89126c27104f659d7a51b0113e3bd435faf8fielding <p>The <em>extension</em> argument is case-insensitive, and can
604c89126c27104f659d7a51b0113e3bd435faf8fielding be specified with or without a leading dot.</p>
604c89126c27104f659d7a51b0113e3bd435faf8fielding</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="RemoveOutputFilter" id="RemoveOutputFilter">RemoveOutputFilter</a> <a name="removeoutputfilter" id="removeoutputfilter">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive </a></th><td>Removes any output filter associations for a set of file
22265f1724519886e2a2b5e0ebd61477506b7379noodlextensions</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
22265f1724519886e2a2b5e0ebd61477506b7379noodl <em>extension</em> [<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
22265f1724519886e2a2b5e0ebd61477506b7379noodl </a></th><td>virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Override">Override:
604c89126c27104f659d7a51b0113e3bd435faf8fielding </a></th><td /></tr><tr><th><a href="directive-dict.html#Status">Status:
604c89126c27104f659d7a51b0113e3bd435faf8fielding </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
604c89126c27104f659d7a51b0113e3bd435faf8fielding </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
604c89126c27104f659d7a51b0113e3bd435faf8fielding </a></th><td>RemoveOutputFilter is only available in Apache
604c89126c27104f659d7a51b0113e3bd435faf8fielding <p>The <code>RemoveOutputFilter</code> directive removes any
604c89126c27104f659d7a51b0113e3bd435faf8fielding output filter associations for files with the given extensions.
604c89126c27104f659d7a51b0113e3bd435faf8fielding This allows <code>.htaccess</code> files in subdirectories to
604c89126c27104f659d7a51b0113e3bd435faf8fielding undo any associations inherited from parent directories or the
fe64b2ba25510d8c9dba5560a2d537763566cf40nd server config files.</p>
9597f440430d8c876dd64f5f78066804650a18ecnoodl <p>The <em>extension</em> argument is case-insensitive, and can
9597f440430d8c876dd64f5f78066804650a18ecnoodl be specified with or without a leading dot.</p>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf RemoveOutputFilter shtml
9597f440430d8c876dd64f5f78066804650a18ecnoodl<h3>See also</h3><ul><li><code class="directive"><a href="#addoutputfilter">AddOutputFilter</a></code></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="RemoveType" id="RemoveType">RemoveType</a> <a name="removetype" id="removetype">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
9597f440430d8c876dd64f5f78066804650a18ecnoodl </a></th><td>Removes any content type associations for a set of file
9597f440430d8c876dd64f5f78066804650a18ecnoodlextensions</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <em>extension</em> [<em>extension</em>] ...</td></tr><tr><th><a href="directive-dict.html#Context">Context:
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf </a></th><td>virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Override">Override:
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf </a></th><td /></tr><tr><th><a href="directive-dict.html#Status">Status:
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf </a></th><td>mod_mime</td></tr><tr><th><a href="directive-dict.html#Compatibility">Compatibility:
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf only available in Apache 1.3.13 and later.</td></tr></table>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <p>The <code class="directive">RemoveType</code> directive removes any MIME type
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf associations for files with the given extensions. This allows
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <code>.htaccess</code> files in subdirectories to undo any
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf associations inherited from parent directories or the server
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf config files. An example of its use might be:</p>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsfRemoveType .cgi
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <p>This will remove any special handling of <code>.cgi</code>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf files in the <code>/foo/</code> directory and any beneath it,
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf causing the files to be treated as being of the <a href="core.html#defaulttype">default type</a>.</p>
cba8c0896ba04d42cf9a9e50df5040fd6bae14a4sf <div class="note"><strong>Note:</strong><code class="directive">RemoveType</code> directives
cba8c0896ba04d42cf9a9e50df5040fd6bae14a4sf are processed <em>after</em> any <code class="directive">AddType</code>
cba8c0896ba04d42cf9a9e50df5040fd6bae14a4sf directives, so it is possible they may undo the effects of the
fe64b2ba25510d8c9dba5560a2d537763566cf40nd latter if both occur within the same directory
fe64b2ba25510d8c9dba5560a2d537763566cf40nd configuration.</div>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>The <em>extension</em> argument is case-insensitive, and can
fe64b2ba25510d8c9dba5560a2d537763566cf40nd be specified with or without a leading dot.</p>
cb43ec0a02f97651bf2f46c9f4b9b48d5cb22df7rbowen</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div><div class="directive-section"><h2><a name="TypesConfig" id="TypesConfig">TypesConfig</a> <a name="typesconfig" id="typesconfig">Directive</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">Description:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>The location of the mime.types file</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>TypesConfig <em>file-path</em></td></tr><tr><th><a href="directive-dict.html#Default">Default:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td><code>TypesConfig conf/mime.types</code></td></tr><tr><th><a href="directive-dict.html#Context">Context:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>server config</td></tr><tr><th><a href="directive-dict.html#Status">Status:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></th><td>Base</td></tr><tr><th><a href="directive-dict.html#Module">Module:
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>The TypesConfig directive sets the location of the MIME types
cb43ec0a02f97651bf2f46c9f4b9b48d5cb22df7rbowen configuration file. <em>Filename</em> is relative to the <a href="core.html#serverroot">ServerRoot</a>. This file sets the
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor default list of mappings from filename extensions to content
cb43ec0a02f97651bf2f46c9f4b9b48d5cb22df7rbowen types. Most administrators use the provided
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <code>mime.types</code> file, which associates common filename
ff797e743eb73c1d45b08158aa6b288c2d0c46eeslive extensions with IANA registered content types. The current list is
fb77c505254b6e9c925e23e734463e87574f8f40kess maintained at
fb77c505254b6e9c925e23e734463e87574f8f40kess <code>http://www.isi.edu/in-notes/iana/assignments/media-types/media-types</code>. This
fb77c505254b6e9c925e23e734463e87574f8f40kess simplifies the <code>httpd.conf</code> file by providing the
fb77c505254b6e9c925e23e734463e87574f8f40kess majority of media-type definitions, and may be overridden by
ff797e743eb73c1d45b08158aa6b288c2d0c46eeslive <code class="directive"><a href="#addtype">AddType</a></code> directives as
ff797e743eb73c1d45b08158aa6b288c2d0c46eeslive needed. You should not edit the <code>mime.types</code> file,
ff797e743eb73c1d45b08158aa6b288c2d0c46eeslive because it may be replaced when you upgrade your server.</p>
130d299c4b2b15be45532a176604c71fdc7bea5bnd <p>The file contains lines in the format of the arguments to
130d299c4b2b15be45532a176604c71fdc7bea5bnd an <code class="directive"><a href="#addtype">AddType</a></code> directive:</p>
130d299c4b2b15be45532a176604c71fdc7bea5bnd MIME-type extension extension ...
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd The case of the extension does not matter. Blank lines, and lines
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd beginning with a hash character (`#') are ignored. </p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <div class="note">Please do not send requests to the Apache HTTP Server Project
fb77c505254b6e9c925e23e734463e87574f8f40kess to add any new entries in the distributed mime.types file
fb77c505254b6e9c925e23e734463e87574f8f40kess unless (1) they are already registered with IANA, and (2) they
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd use widely accepted, non-conflicting filename extensions across
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd platforms. category/x-subtype requests will be automatically
b06660a3ed3d885e15d99c0209a46c4657df33fbrbowen rejected, as will any new two-letter extensions as they will
d1348237b33bc1755b9f1165eea52317465a7671nd likely conflict later with the already crowded language and
d1348237b33bc1755b9f1165eea52317465a7671nd character set namespace.</div>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<h3>See also</h3><ul><li><code class="module"><a href="/mod/mod_mime_magic.html">mod_mime_magic</a></code></li></ul></div></div><div id="footer"><p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p><p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p></div></body></html>