mod_mime.html revision af7fdf19d23dae6129abaaeb61a1f7bd74f677f5
4fe198d6f302c883b3edf100a6990b2ee4923494vboxsync<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<HTML>
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync<HEAD>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<TITLE>Apache module mod_mime</TITLE>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync</HEAD>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<BODY
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync BGCOLOR="#FFFFFF"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync TEXT="#000000"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync LINK="#0000FF"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync VLINK="#000080"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync ALINK="#FF0000"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<!--#include virtual="header.html" -->
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<H1 ALIGN="CENTER">Module mod_mime</H1>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync
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.
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<H2>Summary</H2>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync
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.
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync
7870a295fdec1b57c4546425f2e591fd3091a7b3vboxsync<P>
5ffb8839e755b3d3d6a45131c530ea13f8e9a2b9vboxsync
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncThe directives <A HREF="#addencoding">AddEncoding</A>, <A
5ffb8839e755b3d3d6a45131c530ea13f8e9a2b9vboxsyncHREF="#addhandler">AddHandler</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
5f78e8e2cc5ea1e52a14f9a18277cd3c5c89dd5cvboxsyncHREF="#forcetype">ForceType</A> and <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.
0be659b1e32246489fa133d069bb619ad43647e7vboxsync
0be659b1e32246489fa133d069bb619ad43647e7vboxsync<P>
0be659b1e32246489fa133d069bb619ad43647e7vboxsync
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
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<A NAME="multipleext"><H2>Files with Multiple Extensions</H2></A>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync
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
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsynctext/html but <EM>no</EM> language.
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<P>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync
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
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsyncbe associated with the MIME-type "text/html".
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<P>
b2b3dd040e6419db8733be1dca655675d3c60e04vboxsync
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
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<H2>Directives</H2>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<UL>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<LI><A HREF="#addencoding">AddEncoding</A>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<LI><A HREF="#addhandler">AddHandler</A>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<LI><A HREF="#addlanguage">AddLanguage</A>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<LI><A HREF="#addtype">AddType</A>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<LI><A HREF="#defaultlanguage">DefaultLanguage</A>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<LI><A HREF="#forcetype">ForceType</A>
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync<LI><A HREF="#sethandler">SetHandler</A>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<LI><A HREF="#typesconfig">TypesConfig</A>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync</UL>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<HR>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<H2><A NAME="addencoding">AddEncoding</A></H2>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<!--%plaintext &lt;?INDEX {\tt AddEncoding} directive&gt; -->
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<A
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync HREF="directive-dict.html#Syntax"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync REL="Help"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync><STRONG>Syntax:</STRONG></A> AddEncoding <EM>MIME-enc extension extension...</EM><BR>
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync<A
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync HREF="directive-dict.html#Context"
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync REL="Help"
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<A
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync HREF="directive-dict.html#Override"
f44b6583d60e03aa9366a491b16071532cf92357vboxsync REL="Help"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync><STRONG>Override:</STRONG></A> FileInfo<BR>
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync<A
f44b6583d60e03aa9366a491b16071532cf92357vboxsync HREF="directive-dict.html#Status"
9960b537f41818c96be5b4426013af0854278fe2vboxsync REL="Help"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync><STRONG>Status:</STRONG></A> Base<BR>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<A
23a9871a0529153e9acd72f2892d1daba911b620vboxsync HREF="directive-dict.html#Module"
23a9871a0529153e9acd72f2892d1daba911b620vboxsync REL="Help"
9960b537f41818c96be5b4426013af0854278fe2vboxsync><STRONG>Module:</STRONG></A> mod_mime<P>
23a9871a0529153e9acd72f2892d1daba911b620vboxsync
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
9960b537f41818c96be5b4426013af0854278fe2vboxsyncfor the same <EM>extension</EM>.
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsyncExample:
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<BLOCKQUOTE><CODE> AddEncoding x-gzip gz<BR> AddEncoding x-compress Z
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync</CODE></BLOCKQUOTE>
b2b3dd040e6419db8733be1dca655675d3c60e04vboxsync
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>
4c0046c5896bbe0fbff893996b7886284e0b3afdvboxsync
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
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<P>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsyncmultiple extensions</A>
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync<P><HR>
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync<H2><A NAME="addhandler">AddHandler</A></H2>
2c042a102824ed308044077b31cbe508ba732721vboxsync
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<A
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync HREF="directive-dict.html#Syntax"
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync REL="Help"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync><STRONG>Syntax:</STRONG></A> AddHandler <EM>handler-name extension extension...</EM><BR>
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync<A
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync HREF="directive-dict.html#Context"
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync REL="Help"
87121e0238bb0790fe6f0aa124077a3edc43936avboxsync><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<A
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync HREF="directive-dict.html#Override"
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync REL="Help"
87121e0238bb0790fe6f0aa124077a3edc43936avboxsync><STRONG>Override:</STRONG></A> FileInfo<BR>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<A
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync HREF="directive-dict.html#Status"
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync REL="Help"
87121e0238bb0790fe6f0aa124077a3edc43936avboxsync><STRONG>Status:</STRONG></A> Base<BR>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<A
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync HREF="directive-dict.html#Module"
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync REL="Help"
87121e0238bb0790fe6f0aa124077a3edc43936avboxsync><STRONG>Module:</STRONG></A> mod_mime<BR>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<A
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync HREF="directive-dict.html#Compatibility"
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync REL="Help"
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync><STRONG>Compatibility:</STRONG></A> AddHandler is only available in Apache
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync1.1 and later<P>
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync
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
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsyncalready exist for the same <EM>extension</EM>.
87121e0238bb0790fe6f0aa124077a3edc43936avboxsync
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsyncFor example, to activate CGI scripts
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsyncwith the file extension "<CODE>.cgi</CODE>", you might use:
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsync<PRE>
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsync AddHandler cgi-script cgi
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsync</PRE>
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsync
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>
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsync<P>
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsync
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync<STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
87121e0238bb0790fe6f0aa124077a3edc43936avboxsyncmultiple extensions</A>
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsync
0556a098a13a02f1386a40fd722fdb9f04c48ab2vboxsync<HR>
45dbb085811b1cf3e6c48c3e4e08e3f32b21485cvboxsync
7480f639b6e81e4f5583e2dded360b77d3ad58a8vboxsync<H2><A NAME="addlanguage">AddLanguage</A></H2>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<!--%plaintext &lt;?INDEX {\tt AddLanguage} directive&gt; -->
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync<A
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync HREF="directive-dict.html#Syntax"
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync REL="Help"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Syntax:</STRONG></A> AddLanguage <EM>MIME-lang extension extension...</EM><BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Context"
2c042a102824ed308044077b31cbe508ba732721vboxsync REL="Help"
9b5bf00cddef78a2e5ab748a141ea830ce47abe2vboxsync><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync HREF="directive-dict.html#Override"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync><STRONG>Override:</STRONG></A> FileInfo<BR>
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync<A
f3e5e9688f91f9da218437106680d36450b15e21vboxsync HREF="directive-dict.html#Status"
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync REL="Help"
2c042a102824ed308044077b31cbe508ba732721vboxsync><STRONG>Status:</STRONG></A> Base<BR>
2c042a102824ed308044077b31cbe508ba732721vboxsync<A
2c042a102824ed308044077b31cbe508ba732721vboxsync HREF="directive-dict.html#Module"
4faf92053d9cec5599c0ab8577231df0f7d615b3vboxsync REL="Help"
2c042a102824ed308044077b31cbe508ba732721vboxsync><STRONG>Module:</STRONG></A> mod_mime<P>
2c042a102824ed308044077b31cbe508ba732721vboxsync
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
6e26ef34350571443d9da6949f75da3b30add368vboxsyncsame <EM>extension</EM>.
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync
f3e5e9688f91f9da218437106680d36450b15e21vboxsyncExample: <BLOCKQUOTE><CODE>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsyncAddEncoding x-compress Z<BR> AddLanguage en .en<BR> AddLanguage fr
f3e5e9688f91f9da218437106680d36450b15e21vboxsync.fr<BR> </CODE></BLOCKQUOTE>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync
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>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<P>
6e26ef34350571443d9da6949f75da3b30add368vboxsync
6e26ef34350571443d9da6949f75da3b30add368vboxsync<STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
6e26ef34350571443d9da6949f75da3b30add368vboxsyncmultiple extensions</A>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<STRONG>See also</STRONG>: <A
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsyncHREF="/mod_negotiation.html">mod_negotiation</A>
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync<HR>
6e26ef34350571443d9da6949f75da3b30add368vboxsync
6e26ef34350571443d9da6949f75da3b30add368vboxsync<H2><A NAME="addtype">AddType</A></H2>
6e26ef34350571443d9da6949f75da3b30add368vboxsync<!--%plaintext &lt;?INDEX {\tt AddType} directive&gt; -->
6e26ef34350571443d9da6949f75da3b30add368vboxsync<A
6e26ef34350571443d9da6949f75da3b30add368vboxsync HREF="directive-dict.html#Syntax"
6e26ef34350571443d9da6949f75da3b30add368vboxsync REL="Help"
6e26ef34350571443d9da6949f75da3b30add368vboxsync><STRONG>Syntax:</STRONG></A> AddType <EM>MIME-type extension extension...</EM><BR>
6e26ef34350571443d9da6949f75da3b30add368vboxsync<A
7c0353e7426bf1ca845265a30edd5e29d1e18f45vboxsync HREF="directive-dict.html#Context"
6e26ef34350571443d9da6949f75da3b30add368vboxsync REL="Help"
adf5f1f964bb309d1306e270ed8679d02bf14c23vboxsync><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
6e26ef34350571443d9da6949f75da3b30add368vboxsync<A
6e26ef34350571443d9da6949f75da3b30add368vboxsync HREF="directive-dict.html#Override"
6e26ef34350571443d9da6949f75da3b30add368vboxsync REL="Help"
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync><STRONG>Override:</STRONG></A> FileInfo<BR>
6e26ef34350571443d9da6949f75da3b30add368vboxsync<A
6e26ef34350571443d9da6949f75da3b30add368vboxsync HREF="directive-dict.html#Status"
6e26ef34350571443d9da6949f75da3b30add368vboxsync REL="Help"
6e26ef34350571443d9da6949f75da3b30add368vboxsync><STRONG>Status:</STRONG></A> Base<BR>
7c0353e7426bf1ca845265a30edd5e29d1e18f45vboxsync<A
6e26ef34350571443d9da6949f75da3b30add368vboxsync HREF="directive-dict.html#Module"
6e26ef34350571443d9da6949f75da3b30add368vboxsync REL="Help"
7c0353e7426bf1ca845265a30edd5e29d1e18f45vboxsync><STRONG>Module:</STRONG></A> mod_mime<P>
6e26ef34350571443d9da6949f75da3b30add368vboxsync
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
6e26ef34350571443d9da6949f75da3b30add368vboxsyncnot listed in the MIME types file (see the <CODE><A
6e26ef34350571443d9da6949f75da3b30add368vboxsyncHREF="#typesconfig">TypesConfig</A></CODE> directive).
6e26ef34350571443d9da6949f75da3b30add368vboxsync
6e26ef34350571443d9da6949f75da3b30add368vboxsyncExample:
6e26ef34350571443d9da6949f75da3b30add368vboxsync<BLOCKQUOTE><CODE>
7c0353e7426bf1ca845265a30edd5e29d1e18f45vboxsyncAddType image/gif GIF
2c042a102824ed308044077b31cbe508ba732721vboxsync</CODE></BLOCKQUOTE>
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
6e26ef34350571443d9da6949f75da3b30add368vboxsync<P>
adf5f1f964bb309d1306e270ed8679d02bf14c23vboxsync
6e26ef34350571443d9da6949f75da3b30add368vboxsync<STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
6e26ef34350571443d9da6949f75da3b30add368vboxsyncmultiple extensions</A>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync
6e26ef34350571443d9da6949f75da3b30add368vboxsync<HR>
2c042a102824ed308044077b31cbe508ba732721vboxsync
2c042a102824ed308044077b31cbe508ba732721vboxsync<H2><A NAME="defaultlanguage">DefaultLanguage</A></H2>
2c042a102824ed308044077b31cbe508ba732721vboxsync<!--%plaintext &lt;?INDEX {\tt DefaultLanguage} directive&gt; -->
2c042a102824ed308044077b31cbe508ba732721vboxsync<A
7a61a5714b9a39ac3bd59e52b0843ef498350a35vboxsync HREF="directive-dict.html#Syntax"
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync REL="Help"
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync><STRONG>Syntax:</STRONG></A> DefaultLanguage <EM>MIME-lang</EM><BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Context"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
2c042a102824ed308044077b31cbe508ba732721vboxsync HREF="directive-dict.html#Override"
2c042a102824ed308044077b31cbe508ba732721vboxsync REL="Help"
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync><STRONG>Override:</STRONG></A> FileInfo<BR>
760446f710619a9daa6cedc7f0601f49e4ea3442vboxsync<A
2c042a102824ed308044077b31cbe508ba732721vboxsync HREF="directive-dict.html#Status"
eca0d37c83ac6ca6fc1ce943c6670fbf7b180264vboxsync REL="Help"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Status:</STRONG></A> Base<BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Module"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Module:</STRONG></A> mod_mime<P>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync
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>&lt;Directory&gt;</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.
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync
2c042a102824ed308044077b31cbe508ba732721vboxsync<P>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync
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
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<P>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<STRONG>See also</STRONG>: <A
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncHREF="/mod_negotiation.html">mod_negotiation</A>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<BR>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncmultiple extensions</A>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<HR>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<H2><A NAME="forcetype">ForceType</A></H2>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<A
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync HREF="directive-dict.html#Syntax"
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync REL="Help"
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync><STRONG>Syntax:</STRONG></A> ForceType <EM>media type</EM><BR>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<A
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync HREF="directive-dict.html#Context"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Context:</STRONG></A> directory, .htaccess<BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync HREF="directive-dict.html#Status"
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync REL="Help"
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync><STRONG>Status:</STRONG></A> Base<BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Module"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Module:</STRONG></A> mod_mime<BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Compatibility"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Compatibility:</STRONG></A> ForceType is only available in Apache
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync1.1 and later.<P>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<P>When placed into an <CODE>.htaccess</CODE> file or a
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<CODE>&lt;Directory&gt;</CODE> or <CODE>&lt;Location&gt;</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:
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<PRE>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync ForceType image/gif
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync</PRE>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<P>Note that this will override any filename extensions that might determine
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsyncthe media type.</P><HR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<H2><A NAME="sethandler">SetHandler</A></H2>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Syntax"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Syntax:</STRONG></A> SetHandler <EM>handler-name</EM><BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Context"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Context:</STRONG></A> directory, .htaccess<BR>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<A
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync HREF="directive-dict.html#Status"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync><STRONG>Status:</STRONG></A> Base<BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Module"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Module:</STRONG></A> mod_mime<BR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<A
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Compatibility"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync><STRONG>Compatibility:</STRONG></A> SetHandler is only available in Apache
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync1.1 and later.<P>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<P>When placed into an <CODE>.htaccess</CODE> file or a
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<CODE>&lt;Directory&gt;</CODE> or <CODE>&lt;Location&gt;</CODE> section,
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsyncthis directive forces all matching files to be parsed through the
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<A HREF="/handler.html">handler</A>
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<CODE>.htaccess</CODE> file in that directory:
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<PRE>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync SetHandler imap-file
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync</PRE>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync
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<PRE>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync &lt;Location /status&gt;
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync SetHandler server-status
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync &lt;/Location&gt;
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync</PRE>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<HR>
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync<H2><A NAME="typesconfig">TypesConfig</A></H2>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<!--%plaintext &lt;?INDEX {\tt TypesConfig} directive&gt; -->
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<A
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync HREF="directive-dict.html#Syntax"
fe472fedf1f9912488d4bf8dc5494391fa5d28eavboxsync REL="Help"
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync><STRONG>Syntax:</STRONG></A> TypesConfig <EM>filename</EM><BR>
0be659b1e32246489fa133d069bb619ad43647e7vboxsync<A
0be659b1e32246489fa133d069bb619ad43647e7vboxsync HREF="directive-dict.html#Default"
0be659b1e32246489fa133d069bb619ad43647e7vboxsync REL="Help"
0be659b1e32246489fa133d069bb619ad43647e7vboxsync><STRONG>Default:</STRONG></A> <CODE>TypesConfig conf/MIME.types</CODE><BR>
0be659b1e32246489fa133d069bb619ad43647e7vboxsync<A
0be659b1e32246489fa133d069bb619ad43647e7vboxsync HREF="directive-dict.html#Context"
0be659b1e32246489fa133d069bb619ad43647e7vboxsync REL="Help"
0be659b1e32246489fa133d069bb619ad43647e7vboxsync><STRONG>Context:</STRONG></A> server config<BR>
84d79169f58a3fa9b00b3fea89d1878d4dbac68cvboxsync<A
0be659b1e32246489fa133d069bb619ad43647e7vboxsync HREF="directive-dict.html#Status"
0be659b1e32246489fa133d069bb619ad43647e7vboxsync REL="Help"
0be659b1e32246489fa133d069bb619ad43647e7vboxsync><STRONG>Status:</STRONG></A> Base<BR>
0be659b1e32246489fa133d069bb619ad43647e7vboxsync<A
0be659b1e32246489fa133d069bb619ad43647e7vboxsync HREF="directive-dict.html#Module"
0be659b1e32246489fa133d069bb619ad43647e7vboxsync REL="Help"
0be659b1e32246489fa133d069bb619ad43647e7vboxsync><STRONG>Module:</STRONG></A> mod_mime<P>
0be659b1e32246489fa133d069bb619ad43647e7vboxsync
0be659b1e32246489fa133d069bb619ad43647e7vboxsyncThe TypesConfig directive sets the location of the MIME types configuration
0be659b1e32246489fa133d069bb619ad43647e7vboxsyncfile. <EM>Filename</EM> is relative to the
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
0be659b1e32246489fa133d069bb619ad43647e7vboxsync<!--#include virtual="footer.html" -->
0be659b1e32246489fa133d069bb619ad43647e7vboxsync</BODY>
0be659b1e32246489fa133d069bb619ad43647e7vboxsync</HTML>
0be659b1e32246489fa133d069bb619ad43647e7vboxsync
0be659b1e32246489fa133d069bb619ad43647e7vboxsync