]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Document "DefaultType None" option (PR 13986)
authorNick Kew <niq@apache.org>
Fri, 28 Sep 2007 22:45:08 +0000 (22:45 +0000)
committerNick Kew <niq@apache.org>
Fri, 28 Sep 2007 22:45:08 +0000 (22:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@580502 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/core.xml

index 6799ddfe78c7d19826a9a0fe5f1b2d60380a31ff..1c695722a9504446cc1e8ebae6fcd140d7051704 100644 (file)
@@ -534,7 +534,7 @@ headers</description>
 <name>DefaultType</name>
 <description>MIME content-type that will be sent if the
 server cannot determine a type in any other way</description>
-<syntax>DefaultType <var>MIME-type</var></syntax>
+<syntax>DefaultType <var>MIME-type|none</var></syntax>
 <default>DefaultType text/plain</default>
 <contextlist><context>server config</context><context>virtual host</context>
 <context>directory</context><context>.htaccess</context>
@@ -557,6 +557,17 @@ server cannot determine a type in any other way</description>
     <p>would be appropriate for a directory which contained many GIF
     images with filenames missing the <code>.gif</code> extension.</p>
 
+    <p>Sometimes it may be better to omit the MIME type altogether if it
+    cannot be determined by the server.  This can be accomplished using</p>
+    <example>
+      DefaultType None
+    </example>
+    <p>DefaultType None is only available in httpd-2.2.7 and later.</p>
+
+    <p>This can be suppressed by setting <code>DefaultType None</code>.
+    With this setting, Apache will omit <em>any</em> Content-Type
+    header if it not able to determine the correct MIME type.</p>
+
     <p>Note that unlike <directive
     module="core">ForceType</directive>, this directive only
     provides the default mime-type. All other mime-type definitions,