From: André Malo Date: Tue, 15 Oct 2002 02:51:41 +0000 (+0000) Subject: discovered some useful stuff in the code, X-Git-Tag: 2.0.44~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fe519e29b2c6376c2c62826f21ee174907ca251;p=thirdparty%2Fapache%2Fhttpd.git discovered some useful stuff in the code, see: server/core.c:core_override_type git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97218 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/core.html.en b/docs/manual/mod/core.html.en index 6600a42ff8b..5fb53d23b45 100644 --- a/docs/manual/mod/core.html.en +++ b/docs/manual/mod/core.html.en @@ -844,7 +844,7 @@ filenamesSyntax: request is received
top

ForceType Directive

Description: Forces all matching files to be served with the specified MIME content-type
Syntax: - ForceType MIME-type
Context: + ForceType MIME-type|none
Context: directory, .htaccess
Override: FileInfo
Status: Core
Module: @@ -867,6 +867,25 @@ MIME content-type
Syntax:

Note that unlike DefaultType, this directive overrides all mime-type associations, including filename extensions, that might identify the media type.

+ +

You can override any ForceType setting + by using the value of none:

+ +

+ # force all files to be image/gif:
+ <Location /images>
+ + ForceType image/gif
+
+ </Location>
+
+ # but normal mime-type associations here:
+ <Location /images/mixed>
+ + ForceType none
+
+ </Location> +

top

HostnameLookups Directive

Description: Enables DNS lookups on client IP addresses
Syntax: HostnameLookups on|off|double
Default: @@ -2136,7 +2155,7 @@ is accessed by an incompatible browser
ServerSignature
top

SetHandler Directive

filenames - @@ -512,7 +512,7 @@ is accessed by an incompatible browser [!]env-variable[=value] [[!]env-variable[=value]] ... -
Description: Forces all matching files to be processed by a handler
Syntax: - SetHandler handler-name
Context: + SetHandler handler-name|none
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Core
Module: diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index c081ca4b788..3816068ba5c 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -961,7 +961,7 @@ filenames ForceType Forces all matching files to be served with the specified MIME content-type -ForceType MIME-type +ForceType MIME-type|none directory.htaccess FileInfo @@ -985,6 +985,25 @@ MIME content-type

Note that unlike DefaultType, this directive overrides all mime-type associations, including filename extensions, that might identify the media type.

+ +

You can override any ForceType setting + by using the value of none:

+ + + # force all files to be image/gif:
+ <Location /images>
+ + ForceType image/gif
+
+ </Location>
+
+ # but normal mime-type associations here:
+ <Location /images/mixed>
+ + ForceType none
+
+ </Location> +
@@ -2480,7 +2499,7 @@ is accessed by an incompatible browser SetHandler Forces all matching files to be processed by a handler -SetHandler handler-name +SetHandler handler-name|none server configvirtual host directory.htaccess diff --git a/docs/manual/mod/quickreference.html.en b/docs/manual/mod/quickreference.html.en index 28537a86fb2..80888f5be81 100644 --- a/docs/manual/mod/quickreference.html.en +++ b/docs/manual/mod/quickreference.html.en @@ -258,7 +258,7 @@ filenames
ForceLanguagePriority None|Prefer|Fallback [Prefer|Fallback] Prefer svdhB
Action to take if a single acceptable document is not found
ForceType MIME-typedhC
Forces all matching files to be served with the specified +
ForceType MIME-type|nonedhC
Forces all matching files to be served with the specified MIME content-type
Group unix-group #-1 svM
Group under which the server will answer requests
svdhB
Sets environment variables based on attributes of the request without respect to case
SetHandler handler-namesvdhC
Forces all matching files to be processed by a +
SetHandler handler-name|nonesvdhC
Forces all matching files to be processed by a handler
SetInputFilter filter[;filter...]svdhC
Sets the filters that will process client requests and POST input