From 6574dde8e0e750f7bc3240d2d94a35daa6915508 Mon Sep 17 00:00:00 2001 From: Nick Kew Date: Mon, 15 Oct 2007 18:37:20 +0000 Subject: [PATCH] Improve documentation of "DefaultType None" git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@584842 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/core.xml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index 792b163c7c..bf4f6d5b9d 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -545,8 +545,9 @@ server cannot determine a type in any other way document whose type cannot be determined by its MIME types mappings.

-

The server must inform the client of the content-type of the - document, so in the event of an unknown type it uses the +

The server SHOULD inform the client of the content-type of the + document. If the server is unable to determine this by normal + means, it will set it to the configured DefaultType. For example:

@@ -556,17 +557,15 @@ 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

+

In cases where it can neither be determined by the server nor + the administrator (e.g. a proxy), it is preferable to omit the MIME + type altogether rather than provide information that may be false. + 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.40.0