From 4bd4ff7cd6ddb91d24f8c2317a1951b898b85c37 Mon Sep 17 00:00:00 2001 From: Nick Kew Date: Fri, 28 Sep 2007 22:45:08 +0000 Subject: [PATCH] Document "DefaultType None" option (PR 13986) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@580502 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/core.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index 6799ddfe78..1c695722a9 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -534,7 +534,7 @@ headers DefaultType MIME content-type that will be sent if the server cannot determine a type in any other way -DefaultType MIME-type +DefaultType MIME-type|none DefaultType text/plain server configvirtual host directory.htaccess @@ -557,6 +557,17 @@ server cannot determine a type in any other way

would be appropriate for a directory which contained many GIF images with filenames missing the .gif extension.

+

Sometimes it may be better to omit the MIME type altogether if it + cannot be determined by the server. This can be accomplished using

+ + DefaultType None + +

DefaultType None is only available in httpd-2.2.7 and later.

+ +

This can be suppressed by setting DefaultType None. + With this setting, Apache will omit any Content-Type + header if it not able to determine the correct MIME type.

+

Note that unlike ForceType, this directive only provides the default mime-type. All other mime-type definitions, -- 2.50.1