[deployment-guide/comm-rel: 475/727] Updated the AddType directive description.

Jaromir Hradilek jhradile at fedoraproject.org
Tue Oct 19 13:04:48 UTC 2010


commit 832a08cef6695b2539da4ab7d9223df5976ae550
Author: Jaromir Hradilek <jhradile at redhat.com>
Date:   Tue Aug 24 15:43:32 2010 +0200

    Updated the AddType directive description.

 en-US/The_Apache_HTTP_Server.xml |   40 +++++++++++++++++--------------------
 1 files changed, 18 insertions(+), 22 deletions(-)
---
diff --git a/en-US/The_Apache_HTTP_Server.xml b/en-US/The_Apache_HTTP_Server.xml
index c82fcf3..9bb209a 100644
--- a/en-US/The_Apache_HTTP_Server.xml
+++ b/en-US/The_Apache_HTTP_Server.xml
@@ -420,29 +420,23 @@ AddIcon /icons/blank.png ^^BLANKICON^^</screen>
             </example>
           </listitem>
         </varlistentry>
+        <varlistentry>
+          <term><option>AddType</option></term>
+          <listitem>
+            <para>
+              The <option>AddType</option> directive allows you to define or override a media type for a selected file extension. It takes the following form:
+            </para>
+            <screen>AddType <replaceable>media-type</replaceable> <replaceable>extension</replaceable>...</screen>
+            <para>
+              The <replaceable>media-type</replaceable> option has to be a valid MIME type such as <literal>text/html</literal>, <literal>image/png</literal>, <literal>application/pdf</literal> etc.
+            </para>
+            <example id="example-apache-httpdconf-addtype">
+              <title>Using the <option>AddType</option> directive</title>
+              <screen>AddType application/x-gzip .gz .tgz</screen>
+            </example>
+          </listitem>
+        </varlistentry>
       </variablelist>
-      <formalpara id="s2-apache-addtype">
-        <title>AddType</title>
-        <indexterm>
-          <primary><command>AddType</command></primary>
-          <secondary>Apache configuration directive</secondary>
-        </indexterm>
-        <indexterm>
-          <primary>configuration directives, Apache</primary>
-          <secondary><command>AddType</command></secondary>
-        </indexterm>
-        <indexterm>
-          <primary>server side includes</primary>
-        </indexterm>
-        <indexterm>
-          <primary>virtual hosts</primary>
-          <secondary>server side includes</secondary>
-        </indexterm>
-        <para>
-          Use the <command>AddType</command> directive to define or override a default MIME type and file extension pairs. The following example directive tells the Apache HTTP Server to recognize the <command>.tgz</command> file extension:
-        </para>
-      </formalpara>
-      <screen><command>AddType application/x-tar .tgz</command></screen>
       <formalpara id="s2-apache-alias">
         <title>Alias</title>
         <indexterm>
@@ -1486,9 +1480,11 @@ AddIcon /icons/blank.png ^^BLANKICON^^</screen>
           <command>TypesConfig</command> names the file which sets the default list of MIME type mappings (file name extensions to content types). The default <command> TypesConfig</command> file is <filename>/etc/mime.types</filename>. Instead of editing <filename>/etc/mime.types</filename>, the recommended way to add MIME type mappings is to use the <command> AddType</command> directive.
         </para>
       </formalpara>
+      <!--
       <para>
         For more information about <command>AddType</command>, refer to <xref linkend="s2-apache-addtype" />.
       </para>
+      -->
       <formalpara id="s2-apache-usecanonicalname">
         <title>UseCanonicalName</title>
         <indexterm>


More information about the docs-commits mailing list