Return-Path: Delivered-To: apmail-apache-cvs-archive@apache.org Received: (qmail 14232 invoked by uid 500); 4 Oct 2000 21:51:19 -0000 Mailing-List: contact apache-cvs-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-cvs@apache.org Received: (qmail 14122 invoked by uid 500); 4 Oct 2000 21:51:18 -0000 Delivered-To: apmail-apache-2.0-cvs@apache.org Delivered-To: apmail-httpd-docs-2.0-cvs@apache.org Date: 4 Oct 2000 21:51:15 -0000 Message-ID: <20001004215115.13979.qmail@locus.apache.org> From: slive@locus.apache.org To: httpd-docs-2.0-cvs@apache.org Subject: cvs commit: httpd-docs-2.0/htdocs/manual/mod mod_asis.html slive 00/10/04 14:51:15 Modified: htdocs/manual/mod mod_asis.html Log: Use a handler rather than a magic mime type in mod_asis. Revision Changes Path 1.9 +14 -12 httpd-docs-2.0/htdocs/manual/mod/mod_asis.html Index: mod_asis.html =================================================================== RCS file: /home/cvs/httpd-docs-2.0/htdocs/manual/mod/mod_asis.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- mod_asis.html 2000/09/25 21:50:07 1.8 +++ mod_asis.html 2000/10/04 21:51:14 1.9 @@ -37,29 +37,31 @@

Summary

-

Any document with mime type httpd/send-as-is will be -processed by this module. Apache will send the document without -adding most of the usual HTTP headers. +

This module provides the handler send-as-is wich +causes Apache to send the document without adding most of the usual +HTTP headers.

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. +

For historical reasons, this module will also process any file with +the mime type httpd/send-as-is. +

Directives

This module provides no directives.

Usage

-

In the server configuration file, define a new mime type called -httpd/send-as-is e.g. -

AddType httpd/send-as-is asis
-this defines the .asis file extension as being of the new -httpd/send-as-is mime type. The contents of any file with a -.asis 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. +

In the server configuration file, associate files with the +send-as-is handler e.g. +

AddHandler send-as-is asis
+The contents of any file with a .asis 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.

Here's an example of a file whose contents are sent as is so as to tell the client that a file has redirected.