Apache patch E63 (send as is)

First appears in Apache 0.6

Date:
April 10th '95

Documentation:
Usage & Technical discussion

Purpose

To allow file types to be defined such that Apache sends them without adding HTTP headers.

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 a nph script.

Usage

In conf/mime.types define a new mime type called httpd/send-as-is e.g.

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 with absolutely no additional information.

Clients will need HTTP headers to be attached, so don't forget them.

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

Status: 302 Now where did I leave that URL   
Location: http://xyz.abc.com/foo/bar.html
Content-type: text/html

<HTML>
<HEAD>
<TITLE>Lame excuses'R'us</TITLE>
</HEAD>
<BODY>
<H1>Fred's exceptionally wonderful page has moved to
<A HREF="http://xyz.abc.com/foo/bar.html">Joe's</A> site.
</H1>
</BODY>
</HTML>


Home Index