diff options
author | Joshua Slive <slive@apache.org> | 2000-09-25 23:50:07 +0200 |
---|---|---|
committer | Joshua Slive <slive@apache.org> | 2000-09-25 23:50:07 +0200 |
commit | d9b68396dbed4752dfd63c13dbf4e3d42bd27d59 (patch) | |
tree | 5b8786fa71dda84fe463d594de0fdb77cb76df49 /docs/manual/mod/mod_asis.html | |
parent | Cleaner feature tests and new -d -m -s -p options for crypt, MD5, SHA1 (diff) | |
download | apache2-d9b68396dbed4752dfd63c13dbf4e3d42bd27d59.tar.xz apache2-d9b68396dbed4752dfd63c13dbf4e3d42bd27d59.zip |
Style updates.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86324 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_asis.html')
-rw-r--r-- | docs/manual/mod/mod_asis.html | 61 |
1 files changed, 41 insertions, 20 deletions
diff --git a/docs/manual/mod/mod_asis.html b/docs/manual/mod/mod_asis.html index 3ca8e7e906..a2af563789 100644 --- a/docs/manual/mod/mod_asis.html +++ b/docs/manual/mod/mod_asis.html @@ -16,21 +16,42 @@ <H1 ALIGN="CENTER">Module mod_asis</H1> -This module is contained in the <CODE>mod_asis.c</CODE> file, and -is compiled in by default. It provides for <CODE>.asis</CODE> files. Any -document with mime type <CODE>httpd/send-as-is</CODE> will be processed by -this module. -<!--%plaintext <?INDEX {\tt httpd/send-as-is} mime type> --> +<P>This module provides for sending files which contain their own +HTTP headers. -<H2>Purpose</H2> -To allow file types to be defined such that Apache sends them without -adding HTTP headers.<P> +<P><A +HREF="module-dict.html#Status" +REL="Help" +><STRONG>Status:</STRONG></A> Base +<BR> +<A +HREF="module-dict.html#SourceFile" +REL="Help" +><STRONG>Source File:</STRONG></A> mod_asis.c +<BR> +<A +HREF="module-dict.html#ModuleIdentifier" +REL="Help" +><STRONG>Module Identifier:</STRONG></A> asis_module +</P> + +<H2>Summary</H2> + +<P>Any document with mime type <CODE>httpd/send-as-is</CODE> will be +processed by this module. Apache will send the document without +adding most of the usual HTTP headers. + +<P>This can be used to send any kind of data from the server, +including redirects and other special HTTP responses, without +requiring a cgi-script or an nph script. + +<H2>Directives</H2> + +<P>This module provides no directives. -This can be used to send any kind of data from the server, including redirects -and other special HTTP responses, without requiring a cgi-script or an nph -script. <H2>Usage</H2> -In the server configuration file, define a new mime type called + +<P>In the server configuration file, define a new mime type called <CODE>httpd/send-as-is</CODE> <EM>e.g.</EM> <BLOCKQUOTE><CODE>AddType httpd/send-as-is asis</CODE></BLOCKQUOTE> this defines the <CODE>.asis</CODE> file extension as being of the new @@ -38,14 +59,14 @@ this defines the <CODE>.asis</CODE> file extension as being of the new <CODE>.asis</CODE> extension will then be sent by Apache to the client with almost no changes. Clients will need HTTP headers to be attached, so do not forget them. A Status: header is also required; the data should be the -3-digit HTTP response code, followed by a textual message.<P> +3-digit HTTP response code, followed by a textual message. -Here's an example of a file whose contents are sent <EM>as is</EM> so as to -tell the client that a file has redirected. -<BLOCKQUOTE><CODE> -Status: 301 Now where did I leave that URL <BR> +<P>Here's an example of a file whose contents are sent <EM>as is</EM> +so as to tell the client that a file has redirected. +<BLOCKQUOTE><CODE> Status: 301 Now where did I leave that URL <BR> Location: http://xyz.abc.com/foo/bar.html <BR> -Content-type: text/html <BR> +Content-type: text/html +<BR> <BR> <HTML> <BR> <HEAD> <BR> @@ -58,10 +79,10 @@ Content-type: text/html <BR> </BODY> <BR> </HTML> </CODE></BLOCKQUOTE> -Notes: the server always adds a Date: and Server: header to the data returned + +<P>Notes: the server always adds a Date: and Server: header to the data returned to the client, so these should not be included in the file. The server does <EM>not</EM> add a Last-Modified header; it probably should. -<P> <!--#include virtual="footer.html" --> </BODY> |