[deployment-guide/comm-rel: 498/727] Updated the DefaultType directive description.

Jaromir Hradilek jhradile at fedoraproject.org
Tue Oct 19 13:06:45 UTC 2010


commit eb23038cfcda9f5ad1f03c55fcebac1a74c02cb3
Author: Jaromir Hradilek <jhradile at redhat.com>
Date:   Thu Aug 26 11:10:52 2010 +0200

    Updated the DefaultType directive description.

 en-US/The_Apache_HTTP_Server.xml |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/en-US/The_Apache_HTTP_Server.xml b/en-US/The_Apache_HTTP_Server.xml
index a89d401..08467bb 100644
--- a/en-US/The_Apache_HTTP_Server.xml
+++ b/en-US/The_Apache_HTTP_Server.xml
@@ -804,21 +804,23 @@ AddIcon /icons/blank.png ^^BLANKICON^^</screen>
             </example>
           </listitem>
         </varlistentry>
+        <varlistentry>
+          <term><option>DefaultType</option></term>
+          <listitem>
+            <para>
+              The <option>DefaultType</option> directive allows you to specify a media type to be used in case the proper MIME type cannot be determined by the server. It takes the following form:
+            </para>
+            <screen>DefaultType <replaceable>media-type</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-defaulttype">
+              <title>Using the <option>DefaultType</option> directive</title>
+              <screen>DefaultType text/plain</screen>
+            </example>
+          </listitem>
+        </varlistentry>
       </variablelist>
-      <formalpara id="s2-apache-defaulttype">
-        <title>DefaultType</title>
-        <indexterm>
-          <primary><command>DefaultType</command></primary>
-          <secondary>Apache configuration directive</secondary>
-        </indexterm>
-        <indexterm>
-          <primary>configuration directives, Apache</primary>
-          <secondary><command>DefaultType</command></secondary>
-        </indexterm>
-        <para>
-          <command>DefaultType</command> sets a default content type for the Web server to use for documents whose MIME types cannot be determined. The default is <command> text/plain</command>.
-        </para>
-      </formalpara>
       <formalpara id="s2-apache-deny">
         <title>Deny</title>
         <indexterm>


More information about the docs-commits mailing list