summaryrefslogtreecommitdiff
path: root/docs/manual/mod/mod_mime.xml
diff options
context:
space:
mode:
authorIgor Galić <igalic@apache.org>2010-09-18 21:41:04 +0000
committerIgor Galić <igalic@apache.org>2010-09-18 21:41:04 +0000
commit1e114604085c6f6aea7d924b22d03866b71ec0fa (patch)
tree98a45542c0f754845952350347faac08aa87db65 /docs/manual/mod/mod_mime.xml
parent71317750aa8ed5ac1266af53db60a900b348aa8b (diff)
downloadhttpd-1e114604085c6f6aea7d924b22d03866b71ec0fa.tar.gz
Explanation on how to prioritize mime-types on the serverside with AddType.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@998553 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_mime.xml')
-rw-r--r--docs/manual/mod/mod_mime.xml30
1 files changed, 21 insertions, 9 deletions
diff --git a/docs/manual/mod/mod_mime.xml b/docs/manual/mod/mod_mime.xml
index c94681ea7e..d9091a1fc3 100644
--- a/docs/manual/mod/mod_mime.xml
+++ b/docs/manual/mod/mod_mime.xml
@@ -529,9 +529,13 @@ type</description>
type</glossary> to use for filenames containing
<var>extension</var>. This mapping is added to any already in
force, overriding any mappings that already exist for the same
- <var>extension</var>. This directive can be used to add mappings
- not listed in the media types file (see the <directive
- module="mod_mime">TypesConfig</directive> directive).</p>
+ <var>extension</var>.</p>
+
+ <note>
+ It is recommended that new media types be added using the
+ <directive>AddType</directive> directive rather than changing the
+ <directive module="mod_mime">TypesConfig</directive> file.
+ </note>
<example><title>Example</title>
AddType image/gif .gif
@@ -543,18 +547,25 @@ type</description>
AddType image/jpeg jpeg jpg jpe
</example>
- <note>
- It is recommended that new media types be added using the
- <directive>AddType</directive> directive rather than changing the
- <directive module="mod_mime">TypesConfig</directive> file.
- </note>
-
<p>The <var>extension</var> argument is case-insensitive and can
be specified with or without a leading dot. Filenames may have <a
href="#multipleext">multiple extensions</a> and the
<var>extension</var> argument will be compared against each of
them.</p>
+ <p>A simmilar effect to <module>mod_negotiation</module>'s
+ <directive module="mod_negotiation">LanguagePriority</directive>
+ can be achieved by qualifying a <var>media-type</var> with
+ <code>qs</code>:</p>
+
+ <example><title>Example</title>
+ Addtype application/rss+xml;qs=0.8 .xml
+ </example>
+
+ <p>This is useful in situations, <em>e.g.</em> when a client
+ requesting <code>Accept: */*</code> can not actually processes
+ the content returned by the server.</p>
+
<p>This directive primarily configures the content types generated for
static files served out of the filesystem. For resources other than
static files, where the generator of the response typically specifies
@@ -562,6 +573,7 @@ type</description>
</usage>
<seealso><directive module="core">ForceType</directive></seealso>
+<seealso><module>mod_negotiation</module></seealso>
</directivesynopsis>
<directivesynopsis>