diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2001-09-01 02:25:22 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2001-09-01 02:25:22 +0000 |
commit | aa5e641aa7d943acd60ab60c9d48dc99b419c280 (patch) | |
tree | e17c2d6015476a0a6d87e358bf10621ea583fcf8 /docs/manual/mod/core.html | |
parent | 640e927610907422951b0dbd1211a1bb5c2bdce0 (diff) | |
download | httpd-aa5e641aa7d943acd60ab60c9d48dc99b419c280.tar.gz |
Move ForceType/SetHandler from mod_mime to core, copy the Set*Filter
description for Add*Filter in mod_mime, and cross reference them.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90864 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/core.html')
-rw-r--r-- | docs/manual/mod/core.html | 139 |
1 files changed, 121 insertions, 18 deletions
diff --git a/docs/manual/mod/core.html b/docs/manual/mod/core.html index 82b55c0224..e0c240df39 100644 --- a/docs/manual/mod/core.html +++ b/docs/manual/mod/core.html @@ -38,6 +38,7 @@ always available. <LI><A HREF="#errorlog">ErrorLog</A> <LI><A HREF="#files"><Files></A> <LI><A HREF="#filesmatch"><FilesMatch></A> +<LI><a href="#forcetype">ForceType</a> <LI><A HREF="#hostnamelookups">HostNameLookups</A> <LI><A HREF="#identitycheck">IdentityCheck</A> <LI><A HREF="#ifdefine"><IfDefine></A> @@ -72,6 +73,7 @@ always available. <LI><A HREF="#serverroot">ServerRoot</A> <LI><A HREF="#serversignature">ServerSignature</A> <LI><A HREF="#servertokens">ServerTokens</A> +<LI><a href="#sethandler">SetHandler</a> <LI><A HREF="#setinputfilter">SetInputFilter</A> <LI><A HREF="#setoutputfilter">SetOutputFilter</A> <LI><A HREF="#timeout">TimeOut</A> @@ -223,12 +225,15 @@ Allow use of the authorization directives <DD> <!--%plaintext <?INDEX {\tt FileInfo} override> --> Allow use of the directives controlling document types -(<A HREF="mod_mime.html#addencoding">AddEncoding</A>, -<A HREF="mod_mime.html#addlanguage">AddLanguage</A>, -<A HREF="mod_mime.html#addtype">AddType</A>, -<A HREF="#defaulttype">DefaultType</A>, +(<A HREF="#defaulttype">DefaultType</A>, <A HREF="#errordocument">ErrorDocument</A>, -<A HREF="mod_negotiation.html#languagepriority">LanguagePriority</A>, <EM>etc.</EM>). +<A href="#forcetype">ForceType</A>, +<A HREF="mod_negotiation.html#languagepriority">LanguagePriority</A>, +<A href="#sethandler">SetHandler</A>, +<A HREF="#setinputfilter">SetInputFilter</A>, +<A HREF="#setoutputfilter">SetOutputFilter</A>, +and <A HREF="mod_mime.html">mod_mime Add* and Remove* directives</A>, +<EM>etc.</EM>). <DT>Indexes <DD> <!--%plaintext <?INDEX {\tt Indexes} override> --> @@ -425,7 +430,14 @@ the event of an unknown type it uses the <CODE>DefaultType</CODE>. For example: <BLOCKQUOTE><CODE>DefaultType image/gif</CODE></BLOCKQUOTE> would be appropriate for a directory which contained many gif images -with filenames missing the .gif extension.<P><HR> +with filenames missing the .gif extension. + +<P>Note that unlike <A HREF="#forcetype">ForceType</A>, this directive +is only provides the default mime-type. All other mime-type definitions, +including filename extensions, that might identify the media type will +override this default.</P> + +<HR> <H2><A NAME="directory"><Directory> directive</A></H2> <!--%plaintext <?INDEX {\tt Directory} section directive> --> @@ -852,6 +864,45 @@ different sections are combined when a request is received <HR> +<h2><a name="forcetype">ForceType</a> directive</h2> + +<a + href="directive-dict.html#Syntax" + rel="Help" +><strong>Syntax:</strong></a> ForceType <em>mime-type</em><br> +<a + href="directive-dict.html#Context" + rel="Help" +><strong>Context:</strong></a> directory, .htaccess<br> +<a + href="directive-dict.html#Status" + rel="Help" +><strong>Status:</strong></a> Base<br> +<a + href="directive-dict.html#Module" + rel="Help" +><strong>Module:</strong></a> core<br> +<a + href="directive-dict.html#Compatibility" + rel="Help" +><strong>Compatibility:</strong></a> ForceType was introduced in mod_mime +with Apache 1.1, and moved to the core in Apache 2.0.<P> + +<P>When placed into an <code>.htaccess</code> file or a +<code><Directory></code>, or <code><Location></code> or +or <code><Files></code> section, this directive forces all matching +files to be served with the content type identification given by +<em>mime-type</em>. For example, if you had a directory full of GIF +files, but did not want to label them all with ".gif", you might want to use: +<pre> + ForceType image/gif +</pre> +<P>Note that unlike <A HREF="#defaulttype">DefaultType</A>, this directive +overrides all mime-type associations, including filename extensions, that +might identify the media type.</P> + +<HR> + <H2><A NAME="hostnamelookups">HostNameLookups directive</A></H2> <!--%plaintext <?INDEX {\tt HostNameLookups} directive> --> <A @@ -2438,12 +2489,58 @@ disabled on a virtualhost-by-virtualhost basis. <HR> +<h2><a name="sethandler">SetHandler</a> directive</h2> + +<a + href="directive-dict.html#Syntax" + rel="Help" +><strong>Syntax:</strong></a> SetHandler <em>handler-name</em><br> +<a + href="directive-dict.html#Context" + rel="Help" +><strong>Context:</strong></a> directory, files, location, .htaccess<br> +<a + href="directive-dict.html#Status" + rel="Help" +><strong>Status:</strong></a> Base<br> +<a + href="directive-dict.html#Module" + rel="Help" +><strong>Module:</strong></a> core<br> +<a + href="directive-dict.html#Compatibility" + rel="Help" +><strong>Compatibility:</strong></a> SetHandler was introduced in mod_mime +with Apache 1.1, and moved into the core with Apache 2.0<P> + +<P>When placed into an <code>.htaccess</code> file or a +<code><Directory></code> or <code><Location></code> section, +this directive forces all matching files to be parsed through the +<a href="../handler.html">handler</a> +given by <em>handler-name</em>. For example, if you had a +directory you wanted to be parsed entirely as imagemap rule files, +regardless of extension, you might put the following into an +<code>.htaccess</code> file in that directory: +<pre> + SetHandler imap-file +</pre> + +<P>Another example: if you wanted to have the server display a status +report whenever a URL of <code>http://servername/status</code> was +called, you might put the following into access.conf: +<pre> + <Location /status> + SetHandler server-status + </Location> +</pre> + +<HR> + <H2><A NAME="setinputfilter">SetInputFilter directive</A></H2> <P><A HREF="directive-dict.html#Syntax" REL="Help" -><STRONG>Syntax:</STRONG></A> SetInputFilter <EM>filter</EM> -[<EM>filter</EM>] ...<BR> +><STRONG>Syntax:</STRONG></A> SetInputFilter <EM>filter</EM>[<EM>;filter</EM>...]<BR> <A HREF="directive-dict.html#Default" REL="Help" @@ -2451,18 +2548,20 @@ disabled on a virtualhost-by-virtualhost basis. <A HREF="directive-dict.html#Context" REL="Help" -><STRONG>Context:</STRONG></A> directory<BR> +><STRONG>Context:</STRONG></A> directory, files, location, .htaccess<BR> <A HREF="directive-dict.html#Status" REL="Help" ><STRONG>Status:</STRONG></A> core</P> -<p>The <code>SetInputFilter</code> directive sets the filters -which will process client requests when they are received by the -server.</p> +<p>The <code>SetInputFilter</code> directive sets the filter or filters +which will process client requests and POST input when they are received +by the server. This is in addition to any filters defined elsewhere, +including the <a href="mod_mime.html#addinputfilter">AddInputFilter</a> +directive.</p> -<p>The order of the arguments determines the order in which the -filters will process the content.</p> +<p>If more than one filter is specified, they must be seperated by +semicolons in the order in which they should process the content.</p> <p>See also the <a href="../filter.html">Filters</a> documentation.</p> @@ -2481,7 +2580,7 @@ filters will process the content.</p> <A HREF="directive-dict.html#Context" REL="Help" -><STRONG>Context:</STRONG></A> directory<BR> +><STRONG>Context:</STRONG></A> directory, files, location, .htaccess<BR> <A HREF="directive-dict.html#Status" REL="Help" @@ -2489,7 +2588,11 @@ filters will process the content.</p> <P>The <code>SetOutputFilter</code> directive sets the filters which will process responses from the server before they are sent to the -client. For example, the following configuration will process +client. This is in addition to any filters defined elsewhere, +including the <a href="mod_mime.html#addoutputfilter">AddOutputFilter</a> +directive.</p> + +For example, the following configuration will process all files in the <code>/www/data/</code> directory for server-side includes.</P> @@ -2499,8 +2602,8 @@ server-side includes.</P> </Directory> </CODE></BLOCKQUOTE> -<p>The order of the arguments determines the order in which the -filters will process the content.</p> +<p>If more than one filter is specified, they must be seperated by +semicolons in the order in which they should process the content.</p> <p>See also the <a href="../filter.html">Filters</a> documentation.</p> |