From a98b5c558699a6384c842ab4b9462affb78dc22d Mon Sep 17 00:00:00 2001 From: Joshua Slive Date: Wed, 4 Oct 2000 21:51:14 +0000 Subject: [PATCH] Use a handler rather than a magic mime type in mod_asis. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86390 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_asis.html | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/docs/manual/mod/mod_asis.html b/docs/manual/mod/mod_asis.html index a2af563789..64b1298242 100644 --- a/docs/manual/mod/mod_asis.html +++ b/docs/manual/mod/mod_asis.html @@ -37,29 +37,31 @@ REL="Help"

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