]> granicus.if.org Git - apache/blob - docs/manual/mod/mod_mime.html
Remove SetFilter from the mod_mime docs.
[apache] / docs / manual / mod / mod_mime.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4 <TITLE>Apache module mod_mime</TITLE>
5 </HEAD>
6
7 <!-- Background white, links blue (unvisited), navy (visited), red (active) -->
8 <BODY
9  BGCOLOR="#FFFFFF"
10  TEXT="#000000"
11  LINK="#0000FF"
12  VLINK="#000080"
13  ALINK="#FF0000"
14 >
15 <!--#include virtual="header.html" -->
16 <H1 ALIGN="CENTER">Module mod_mime</H1>
17
18 <p>This module provides for determining the types of files
19 from the filename and for association of handlers with files.</p>
20
21 <P><A
22 HREF="module-dict.html#Status"
23 REL="Help"
24 ><STRONG>Status:</STRONG></A> Base
25 <BR>
26 <A
27 HREF="module-dict.html#SourceFile"
28 REL="Help"
29 ><STRONG>Source File:</STRONG></A> mod_mime.c
30 <BR>
31 <A
32 HREF="module-dict.html#ModuleIdentifier"
33 REL="Help"
34 ><STRONG>Module Identifier:</STRONG></A> mime_module
35 </P>
36
37 <H2>Summary</H2>
38
39 This module is used to determine various bits of "meta information"
40 about documents. This information relates to the content of the
41 document and is returned to the browser or used in content-negotiation
42 within the server. In addition, a "handler" can be set for a document,
43 which determines how the document will be processed within the server.
44
45 <P>
46
47 The directives <a href="#addcharset">AddCharset</a>, <A
48 HREF="#addencoding">AddEncoding</A>, <A
49 HREF="#addhandler">AddHandler</A>, <A
50 HREF="#addlanguage">AddLanguage</A> and <A HREF="#addtype">AddType</A>
51 are all used to map file extensions onto the meta-information for that
52 file.  Respectively they set the character set, content-encoding,
53 handler, content-language, and MIME-type (content-type) of documents.
54 The directive <A HREF="#typesconfig">TypesConfig</A> is used to
55 specify a file which also maps extensions onto MIME types. The
56 directives <A HREF="#forcetype">ForceType</A> and <A
57 HREF="#sethandler">SetHandler</A> are used to associated all the files
58 in a given location (<EM>e.g.</EM>, a particular directory) onto a
59 particular MIME type or handler.
60
61 <P>
62
63 Note that changing the type or encoding of a file does not change the
64 value of the <CODE>Last-Modified</CODE> header. Thus, previously cached
65 copies may still be used by a client or proxy, with the previous headers.
66
67 <H2>Directives</H2>
68 <UL>
69 <li><a href="#addcharset">AddCharset</a></li>
70 <LI><A HREF="#addencoding">AddEncoding</A>
71 <LI><A HREF="#addhandler">AddHandler</A>
72 <LI><A HREF="#addlanguage">AddLanguage</A>
73 <LI><A HREF="#addtype">AddType</A>
74 <LI><A HREF="#defaultlanguage">DefaultLanguage</A>
75 <LI><A HREF="#forcetype">ForceType</A>
76 <LI><A HREF="#removehandler">RemoveHandler</A>
77 <LI><A HREF="#sethandler">SetHandler</A>
78 <LI><A HREF="#typesconfig">TypesConfig</A>
79 </UL>
80
81 <p>See also: <a
82 href="mod_mime_magic.html#mimemagicfile">MimeMagicFile</a>.</p>
83
84 <H2><A NAME="multipleext">Files with Multiple Extensions</A></H2>
85
86 Files can have more than one extension, and the order of the
87 extensions is <EM>normally</EM> irrelevant. For example, if the file
88 <CODE>welcome.html.fr</CODE> maps onto content type text/html and
89 language French then the file <CODE>welcome.fr.html</CODE> will map
90 onto exactly the same information. The only exception to this is if an
91 extension is given which Apache does not know how to handle. In this
92 case it will "forget" about any information it obtained from
93 extensions to the left of the unknown extension. So, for example, if
94 the extensions fr and html are mapped to the appropriate language and
95 type but extension xxx is not assigned to anything, then the file
96 <CODE>welcome.fr.xxx.html</CODE> will be associated with content-type
97 text/html but <EM>no</EM> language.
98
99 <P>
100
101 If more than one extension is given which maps onto the same type of
102 meta-information, then the one to the right will be used. For example,
103 if ".gif" maps to the MIME-type image/gif and ".html" maps to the
104 MIME-type text/html, then the file <CODE>welcome.gif.html</CODE> will
105 be associated with the MIME-type "text/html".
106
107 <P>
108
109 Care should be taken when a file with multiple extensions gets
110 associated with both a MIME-type and a handler. This will usually
111 result in the request being by the module associated with the
112 handler. For example, if the <CODE>.imap</CODE> extension is mapped to
113 the handler "imap-file" (from mod_imap) and the <CODE>.html</CODE>
114 extension is mapped to the MIME-type "text/html", then the file
115 <CODE>world.imap.html</CODE> will be associated with both the
116 "imap-file" handler and "text/html" MIME-type. When it is processed,
117 the "imap-file" handler will be used, and so it will be treated as a
118 mod_imap imagemap file.
119
120 <HR>
121
122 <H2><A NAME="addcharset">AddCharset</A> directive</H2>
123 <A HREF="directive-dict.html#Syntax" REL="Help"
124 ><STRONG>Syntax:</STRONG></A> AddCharset <em>charset extension</em>
125  [<em>extension</em>] ...<br>
126 <A HREF="directive-dict.html#Context" REL="Help"
127 ><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
128 <A
129  HREF="directive-dict.html#Override"
130  REL="Help"
131 ><STRONG>Override:</STRONG></A> FileInfo<BR>
132 <A
133  HREF="directive-dict.html#Status"
134  REL="Help"
135 ><STRONG>Status:</STRONG></A> Base<BR>
136 <A
137  HREF="directive-dict.html#Module"
138  REL="Help"
139 ><STRONG>Module:</STRONG></A> mod_mime
140
141 <P>
142 The AddCharset directive maps the given filename extensions to the
143 specified content charset. <i>charset</i> is the MIME charset
144 parameter of filenames containing <i>extension</i>.  This mapping is
145 added to any already in force, overriding any mappings that already
146 exist for the same <i>extension</i>.
147 </P>
148 <P>
149 Example:
150 <pre>
151     AddLanguage ja .ja
152     AddCharset EUC-JP .euc
153     AddCharset ISO-2022-JP .jis
154     AddCharset SHIFT_JIS .sjis
155 </pre>
156
157 <P>
158 Then the document <CODE>xxxx.ja.jis</CODE> will be treated as being a
159 Japanese document whose charset is ISO-2022-JP (as will the document
160 <CODE>xxxx.jis.ja</CODE>). The AddCharset directive is useful for both
161 to inform the client about the character encoding of the document so
162 that the document can be interpreted and displayed appropriately, and
163 for <A HREF="../content-negotiation.html">content negotiation</A>, where
164 the server returns one from several documents based on the client's
165 charset preference.
166 </P>
167
168 <p>The <em>extension</em> argument is case-insensitive, and can
169 be specified with or without a leading dot.</p>
170
171 <P>
172 <STRONG>See also</STRONG>: <A HREF="mod_negotiation.html">mod_negotiation</A>
173 </P>
174
175 <hr>
176
177 <H2><A NAME="addencoding">AddEncoding</A> directive</H2>
178 <!--%plaintext &lt;?INDEX {\tt AddEncoding} directive&gt; -->
179 <A
180  HREF="directive-dict.html#Syntax"
181  REL="Help"
182 ><STRONG>Syntax:</STRONG></A> AddEncoding <EM>MIME-enc extension</em>
183   [<em>extension</EM>] ...<BR>
184 <A
185  HREF="directive-dict.html#Context"
186  REL="Help"
187 ><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
188 <A
189  HREF="directive-dict.html#Override"
190  REL="Help"
191 ><STRONG>Override:</STRONG></A> FileInfo<BR>
192 <A
193  HREF="directive-dict.html#Status"
194  REL="Help"
195 ><STRONG>Status:</STRONG></A> Base<BR>
196 <A
197  HREF="directive-dict.html#Module"
198  REL="Help"
199 ><STRONG>Module:</STRONG></A> mod_mime<P>
200
201 The AddEncoding directive maps the given filename extensions to the
202 specified encoding type. <EM>MIME-enc</EM> is the MIME encoding to use
203 for documents containing the <EM>extension</EM>. This mapping is added
204 to any already in force, overriding any mappings that already exist
205 for the same <EM>extension</EM>.
206
207 Example:
208 <BLOCKQUOTE><CODE>
209 AddEncoding x-gzip .gz<BR> 
210 AddEncoding x-compress .Z
211 </CODE></BLOCKQUOTE>
212
213 This will cause filenames containing the .gz extension to be marked as
214 encoded using the x-gzip encoding, and filenames containing the .Z
215 extension to be marked as encoded with x-compress.<P>
216
217 Old clients expect <CODE>x-gzip</CODE> and <CODE>x-compress</CODE>,
218 however the standard dictates that they're equivalent to <CODE>gzip</CODE>
219 and <CODE>compress</CODE> respectively.  Apache does content encoding
220 comparisons by ignoring any leading <CODE>x-</CODE>.  When responding
221 with an encoding Apache will use whatever form (<EM>i.e.</EM>, <CODE>x-foo</CODE>
222 or <CODE>foo</CODE>) the client requested.  If the client didn't
223 specifically request a particular form Apache will use the form given by
224 the <CODE>AddEncoding</CODE> directive.  To make this long story short,
225 you should always use <CODE>x-gzip</CODE> and <CODE>x-compress</CODE>
226 for these two specific encodings.  More recent encodings, such as
227 <CODE>deflate</CODE> should be specified without the <CODE>x-</CODE>.
228
229 <p>The <em>extension</em> argument is case-insensitive, and can
230 be specified with or without a leading dot.</p>
231
232 <P>
233
234 <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
235 multiple extensions</A>
236
237 <P><HR>
238
239 <H2><A NAME="addhandler">AddHandler</A> directive</H2>
240
241 <A
242  HREF="directive-dict.html#Syntax"
243  REL="Help"
244 ><STRONG>Syntax:</STRONG></A> AddHandler <EM>handler-name extension</em>
245   [<em>extension</EM>] ...<BR>
246 <A
247  HREF="directive-dict.html#Context"
248  REL="Help"
249 ><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
250 <A
251  HREF="directive-dict.html#Override"
252  REL="Help"
253 ><STRONG>Override:</STRONG></A> FileInfo<BR>
254 <A
255  HREF="directive-dict.html#Status"
256  REL="Help"
257 ><STRONG>Status:</STRONG></A> Base<BR>
258 <A
259  HREF="directive-dict.html#Module"
260  REL="Help"
261 ><STRONG>Module:</STRONG></A> mod_mime
262
263 <P>AddHandler maps the filename extensions <EM>extension</EM> to the
264 <A HREF="../handler.html">handler</A> <EM>handler-name</EM>.  This
265 mapping is added to any already in force, overriding any mappings that
266 already exist for the same <EM>extension</EM>.
267
268 For example, to activate CGI scripts
269 with the file extension "<CODE>.cgi</CODE>", you might use:
270 <PRE>
271     AddHandler cgi-script .cgi
272 </PRE>
273
274 <P>Once that has been put into your srm.conf or httpd.conf file, any
275 file containing the "<CODE>.cgi</CODE>" extension will be treated as a
276 CGI program.</P> 
277
278 <p>The <em>extension</em> argument is case-insensitive, and can
279 be specified with or without a leading dot.</p>
280
281 <P>
282
283 <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
284 multiple extensions</A>
285
286 <HR>
287
288 <H2><A NAME="addlanguage">AddLanguage</A> directive</H2>
289 <!--%plaintext &lt;?INDEX {\tt AddLanguage} directive&gt; -->
290 <A
291  HREF="directive-dict.html#Syntax"
292  REL="Help"
293 ><STRONG>Syntax:</STRONG></A> AddLanguage <EM>MIME-lang extension</em>
294    [<em>extension</EM>] ...<BR>
295 <A
296  HREF="directive-dict.html#Context"
297  REL="Help"
298 ><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
299 <A
300  HREF="directive-dict.html#Override"
301  REL="Help"
302 ><STRONG>Override:</STRONG></A> FileInfo<BR>
303 <A
304  HREF="directive-dict.html#Status"
305  REL="Help"
306 ><STRONG>Status:</STRONG></A> Base<BR>
307 <A
308  HREF="directive-dict.html#Module"
309  REL="Help"
310 ><STRONG>Module:</STRONG></A> mod_mime
311
312 <P>
313 The AddLanguage directive maps the given filename extensions to the
314 specified content language. <EM>MIME-lang</EM> is the MIME language of
315 filenames containing <EM>extension</EM>.  This mapping is added to any
316 already in force, overriding any mappings that already exist for the
317 same <EM>extension</EM>.
318 </P>
319 <P>
320 Example: <BLOCKQUOTE><CODE>
321 AddEncoding x-compress .Z<BR> AddLanguage en .en<BR> AddLanguage fr
322 .fr<BR> </CODE></BLOCKQUOTE>
323 </P>
324 <P>
325 Then the document <CODE>xxxx.en.Z</CODE> will be treated as being a
326 compressed English document (as will the document
327 <CODE>xxxx.Z.en</CODE>). Although the content language is reported to
328 the client, the browser is unlikely to use this information. The
329 AddLanguage directive is more useful for
330 <A HREF="../content-negotiation.html">content negotiation</A>, where
331 the server returns one from several documents based on the client's
332 language preference.
333 </P>
334 <P>
335 If multiple language assignments are made for the same extension,
336 the last one encountered is the one that is used.  That is, for the
337 case of:
338 </P>
339 <PRE>
340     AddLanguage en .en
341     AddLanguage en-uk .en
342     AddLanguage en-us .en
343 </PRE>
344 <P>
345 documents with the extension "<CODE>.en</CODE>" would be treated as
346 being "<CODE>en-us</CODE>".
347 </P>
348
349 <p>The <em>extension</em> argument is case-insensitive, and can
350 be specified with or without a leading dot.</p>
351
352 <P>
353 <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
354 multiple extensions</A>
355 <BR>
356 <STRONG>See also</STRONG>: <A
357 HREF="./mod_negotiation.html">mod_negotiation</A>
358 </P>
359
360 <HR>
361
362 <H2><A NAME="addtype">AddType</A> directive</H2>
363 <!--%plaintext &lt;?INDEX {\tt AddType} directive&gt; -->
364 <A
365  HREF="directive-dict.html#Syntax"
366  REL="Help"
367 ><STRONG>Syntax:</STRONG></A> AddType <EM>MIME-type extension</em>
368   [<em>extension</EM>] ...<BR>
369 <A
370  HREF="directive-dict.html#Context"
371  REL="Help"
372 ><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
373 <A
374  HREF="directive-dict.html#Override"
375  REL="Help"
376 ><STRONG>Override:</STRONG></A> FileInfo<BR>
377 <A
378  HREF="directive-dict.html#Status"
379  REL="Help"
380 ><STRONG>Status:</STRONG></A> Base<BR>
381 <A
382  HREF="directive-dict.html#Module"
383  REL="Help"
384 ><STRONG>Module:</STRONG></A> mod_mime<P>
385
386 The AddType directive maps the given filename extensions onto the
387 specified content type. <EM>MIME-enc</EM> is the MIME type to use for
388 filenames containing <EM>extension</EM>.  This mapping is added to any
389 already in force, overriding any mappings that already exist for the
390 same <EM>extension</EM>. This directive can be used to add mappings
391 not listed in the MIME types file (see the <CODE><A
392 HREF="#typesconfig">TypesConfig</A></CODE> directive).
393
394 Example:
395 <BLOCKQUOTE><CODE>
396 AddType image/gif .gif
397 </CODE></BLOCKQUOTE>
398 It is recommended that new MIME types be added using the AddType directive
399 rather than changing the <A HREF="#typesconfig">TypesConfig</A> file.<P>
400 Note that, unlike the NCSA httpd, this directive cannot be used to set the
401 type of particular files.<P>
402
403 <p>The <em>extension</em> argument is case-insensitive, and can
404 be specified with or without a leading dot.</p>
405
406 <P>
407
408 <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
409 multiple extensions</A>
410
411 <HR>
412
413 <H2><A NAME="defaultlanguage">DefaultLanguage</A> directive</H2>
414 <!--%plaintext &lt;?INDEX {\tt DefaultLanguage} directive&gt; -->
415 <A
416  HREF="directive-dict.html#Syntax"
417  REL="Help"
418 ><STRONG>Syntax:</STRONG></A> DefaultLanguage <EM>MIME-lang</EM><BR>
419 <A
420  HREF="directive-dict.html#Context"
421  REL="Help"
422 ><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
423 <A
424  HREF="directive-dict.html#Override"
425  REL="Help"
426 ><STRONG>Override:</STRONG></A> FileInfo<BR>
427 <A
428  HREF="directive-dict.html#Status"
429  REL="Help"
430 ><STRONG>Status:</STRONG></A> Base<BR>
431 <A
432  HREF="directive-dict.html#Module"
433  REL="Help"
434 ><STRONG>Module:</STRONG></A> mod_mime
435
436 The DefaultLanguage directive tells Apache that all files in the
437 directive's scope (<EM>e.g.</EM>, all files covered by the current
438 <CODE>&lt;Directory&gt;</CODE> container) that don't have an explicit
439 language extension (such as <SAMP>.fr</SAMP> or <SAMP>.de</SAMP> as
440 configured by <SAMP>AddLanguage</SAMP>) should be considered to be in
441 the specified <EM>MIME-lang</EM> language.  This allows entire
442 directories to be marked as containing Dutch content, for instance,
443 without having to rename each file. Note that unlike using extensions
444 to specify languages, <SAMP>DefaultLanguage</SAMP> can only specify a
445 single language.
446
447 <P>
448
449 If no <SAMP>DefaultLanguage</SAMP> directive is in force, and a file
450 does not have any language extensions as configured by
451 <SAMP>AddLanguage</SAMP>, then that file will be considered to have no
452 language attribute.
453
454 <P>
455
456 <STRONG>See also</STRONG>: <A
457 HREF="./mod_negotiation.html">mod_negotiation</A>
458 <BR>
459 <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with
460 multiple extensions</A>
461
462 <HR>
463
464 <H2><A NAME="forcetype">ForceType</A> directive</H2>
465
466 <A
467  HREF="directive-dict.html#Syntax"
468  REL="Help"
469 ><STRONG>Syntax:</STRONG></A> ForceType <EM>media-type</EM><BR>
470 <A
471  HREF="directive-dict.html#Context"
472  REL="Help"
473 ><STRONG>Context:</STRONG></A> directory, .htaccess<BR>
474 <A
475  HREF="directive-dict.html#Status"
476  REL="Help"
477 ><STRONG>Status:</STRONG></A> Base<BR>
478 <A
479  HREF="directive-dict.html#Module"
480  REL="Help"
481 ><STRONG>Module:</STRONG></A> mod_mime
482
483 <P>When placed into an <CODE>.htaccess</CODE> file or a
484 <CODE>&lt;Directory&gt;</CODE> or <CODE>&lt;Location&gt;</CODE> section,
485 this directive forces all matching files to be served
486 as the content type given by <EM>media type</EM>. For example, if you
487 had a directory full of GIF files, but did not want to label them all with
488 ".gif", you might want to use:
489 <PRE>
490     ForceType image/gif
491 </PRE>
492 <P>Note that this will override any filename extensions that might determine
493 the media type.</P><HR>
494
495 <H2><A NAME="removehandler">RemoveHandler</A> directive</H2>
496
497 <A
498  HREF="directive-dict.html#Syntax"
499  REL="Help"
500 ><STRONG>Syntax:</STRONG></A> RemoveHandler <EM>extension</em>
501   [<em>extension</em>] ...<BR>
502 <A
503  HREF="directive-dict.html#Context"
504  REL="Help"
505 ><STRONG>Context:</STRONG></A> directory, .htaccess<BR>
506 <A
507  HREF="directive-dict.html#Status"
508  REL="Help"
509 ><STRONG>Status:</STRONG></A> Base<BR>
510 <A
511  HREF="directive-dict.html#Module"
512  REL="Help"
513 ><STRONG>Module:</STRONG></A> mod_mime
514
515 <P>
516 The <SAMP>RemoveHandler</SAMP> directive removes any
517 handler associations for files with the given extensions.
518 This allows <CODE>.htaccess</CODE> files in subdirectories to undo
519 any associations inherited from parent directories or the server
520 config files.  An example of its use might be:
521 </P>
522 <DL>
523  <DT><CODE>/foo/.htaccess:</CODE></DT>
524  <DD><CODE>AddHandler server-parsed .html</CODE></DD>
525  <DT><CODE>/foo/bar/.htaccess:</CODE></DT>
526  <DD><CODE>RemoveHandler .html</CODE></DD>
527 </DL>
528 <P>
529 This has the effect of returning <SAMP>.html</SAMP> files in the
530 <SAMP>/foo/bar</SAMP> directory to being treated as normal
531 files, rather than as candidates for parsing (see the
532 <A HREF="mod_include.html"><SAMP>mod_include</SAMP></A> module).
533 </P>
534 <p>The <em>extension</em> argument is case-insensitive, and can
535 be specified with or without a leading dot.</p>
536
537 <HR>
538
539 <H2><A NAME="sethandler">SetHandler</A> directive</H2>
540
541 <A
542  HREF="directive-dict.html#Syntax"
543  REL="Help"
544 ><STRONG>Syntax:</STRONG></A> SetHandler <EM>handler-name</EM><BR>
545 <A
546  HREF="directive-dict.html#Context"
547  REL="Help"
548 ><STRONG>Context:</STRONG></A> directory, .htaccess<BR>
549 <A
550  HREF="directive-dict.html#Status"
551  REL="Help"
552 ><STRONG>Status:</STRONG></A> Base<BR>
553 <A
554  HREF="directive-dict.html#Module"
555  REL="Help"
556 ><STRONG>Module:</STRONG></A> mod_mime
557
558 <P>When placed into an <CODE>.htaccess</CODE> file or a
559 <CODE>&lt;Directory&gt;</CODE> or <CODE>&lt;Location&gt;</CODE> section,
560 this directive forces all matching files to be parsed through the
561 <A HREF="../handler.html">handler</A>
562 given by <EM>handler-name</EM>. For example, if you had a
563 directory you wanted to be parsed entirely as imagemap rule files,
564 regardless of extension, you might put the following into an
565 <CODE>.htaccess</CODE> file in that directory:
566 <PRE>
567     SetHandler imap-file
568 </PRE>
569
570 <P>Another example: if you wanted to have the server display a status
571 report whenever a URL of <CODE>http://servername/status</CODE> was
572 called, you might put the following into access.conf:
573 <PRE>
574     &lt;Location /status&gt;
575     SetHandler server-status
576     &lt;/Location&gt;
577 </PRE>
578 <HR>
579
580 <H2><A NAME="typesconfig">TypesConfig</A> directive</H2>
581 <!--%plaintext &lt;?INDEX {\tt TypesConfig} directive&gt; -->
582 <A
583  HREF="directive-dict.html#Syntax"
584  REL="Help"
585 ><STRONG>Syntax:</STRONG></A> TypesConfig <EM>filename</EM><BR>
586 <A
587  HREF="directive-dict.html#Default"
588  REL="Help"
589 ><STRONG>Default:</STRONG></A> <CODE>TypesConfig conf/MIME.types</CODE><BR>
590 <A
591  HREF="directive-dict.html#Context"
592  REL="Help"
593 ><STRONG>Context:</STRONG></A> server config<BR>
594 <A
595  HREF="directive-dict.html#Status"
596  REL="Help"
597 ><STRONG>Status:</STRONG></A> Base<BR>
598 <A
599  HREF="directive-dict.html#Module"
600  REL="Help"
601 ><STRONG>Module:</STRONG></A> mod_mime<P>
602
603 The TypesConfig directive sets the location of the MIME types configuration
604 file. <EM>Filename</EM> is relative to the
605 <A HREF="core.html#serverroot">ServerRoot</A>. This file sets the default list of
606 mappings from filename extensions to content types; changing this file is not
607 recommended. Use the <A HREF="#addtype">AddType</A> directive instead. The
608 file contains lines in the format of the arguments to an AddType command:
609 <BLOCKQUOTE><EM>MIME-type extension extension ...</EM></BLOCKQUOTE>
610 The extensions are lower-cased. Blank lines, and lines beginning with a hash
611 character (`#') are ignored.<P>
612
613 <!--#include virtual="footer.html" -->
614 </BODY>
615 </HTML>
616