1 <html xmlns="http://www.w3.org/TR/xhtml1/strict"><head><!--
2 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
3 This file is generated from xml source: DO NOT EDIT
4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5 --><title>mod_asis - Apache HTTP Server</title><link href="../style/manual.css" type="text/css" rel="stylesheet"/></head><body><blockquote><div align="center"><img src="../images/sub.gif" alt="[APACHE DOCUMENTATION]"/><h3>Apache HTTP Server Version 2.0</h3></div><h1 align="center">Apache Module mod_asis</h1><table cellspacing="1" cellpadding="0" bgcolor="#cccccc"><tr><td><table bgcolor="#ffffff"><tr><td nowrap="nowrap" valign="top"><span class="help">Description:
6 </span></td><td>Sends files that contain their own
7 HTTP headers</td></tr><tr><td nowrap="nowrap"><a href="module-dict.html#Status" class="help">Status:
8 </a></td><td>Base</td></tr><tr><td nowrap="nowrap"><a href="module-dict.html#ModuleIdentifier" class="help">Module Identifier:
9 </a></td><td>asis_module</td></tr></table></td></tr></table><h2>Summary</h2>
10 <p>This module provides the handler <code>send-as-is</code>
11 which causes Apache to send the document without adding most of
12 the usual HTTP headers.</p>
14 <p>This can be used to send any kind of data from the server,
15 including redirects and other special HTTP responses, without
16 requiring a cgi-script or an nph script.</p>
18 <p>For historical reasons, this module will also process any
19 file with the mime type <code>httpd/send-as-is</code>.</p>
20 <h2>Directives</h2><p>This module provides no directives.</p><p><strong>See also </strong></p><ul><li><code><a href="../mod/mod_headers.html">mod_headers</a></code></li><li><code><a href="../mod/mod_cern_meta.html">mod_cern_meta</a></code></li></ul><h2>Usage</h2>
22 <p>In the server configuration file, associate files with the
23 <code>send-as-is</code> handler <em>e.g.</em></p>
25 <blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>AddHandler send-as-is asis</code></td></tr></table></blockquote>
27 <p>The contents of any file with a <code>.asis</code> extension
28 will then be sent by Apache to the client with almost no
29 changes. Clients will need HTTP headers to be attached, so do
30 not forget them. A Status: header is also required; the data
31 should be the 3-digit HTTP response code, followed by a textual
34 <p>Here's an example of a file whose contents are sent <em>as
35 is</em> so as to tell the client that a file has
39 <blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>Status: 301 Now where did I leave that URL<br>
40 Location: http://xyz.abc.com/foo/bar.html<br>
41 Content-type: text/html<br>
45 <TITLE>Lame excuses'R'us</TITLE><br>
48 <H1>Fred's exceptionally wonderful page has moved
51 HREF="http://xyz.abc.com/foo/bar.html">Joe's</A>
56 </code></td></tr></table></blockquote>
58 <p>Notes: the server always adds a Date: and Server: header to
59 the data returned to the client, so these should not be
60 included in the file. The server does <em>not</em> add a
61 Last-Modified header; it probably should. </p>
62 <hr/></blockquote><h3 align="center">Apache HTTP Server Version 2.0</h3><a href="./"><img src="../images/index.gif" alt="Index"/></a><a href="../"><img src="../images/home.gif" alt="Home"/></a></body></html>