httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r580502 - /httpd/httpd/trunk/docs/manual/mod/core.xml
Date Fri, 28 Sep 2007 22:45:08 GMT
Author: niq
Date: Fri Sep 28 15:45:08 2007
New Revision: 580502

URL: http://svn.apache.org/viewvc?rev=580502&view=rev
Log:
Document "DefaultType None" option (PR 13986)

Modified:
    httpd/httpd/trunk/docs/manual/mod/core.xml

Modified: httpd/httpd/trunk/docs/manual/mod/core.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/core.xml?rev=580502&r1=580501&r2=580502&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/core.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/core.xml Fri Sep 28 15:45:08 2007
@@ -534,7 +534,7 @@
 <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>
@@ -556,6 +556,17 @@
 
     <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



Mime
View raw message