mod_asis.html revision 240a5b8962329911d02566b600be6226e1f857ae
d73ae94e59c019f5cc3221ee0a0012d02091b40egc<html xmlns="http://www.w3.org/TR/xhtml1/strict"><head><!--
d73ae94e59c019f5cc3221ee0a0012d02091b40egcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
d73ae94e59c019f5cc3221ee0a0012d02091b40egc This file is generated from xml source: DO NOT EDIT
d73ae94e59c019f5cc3221ee0a0012d02091b40egcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
d73ae94e59c019f5cc3221ee0a0012d02091b40egc--><title>mod_asis - Apache HTTP Server</title><link rel="stylesheet" type="text/css" href="/style/manual.css"/></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 bgcolor="#cccccc" cellpadding="0" cellspacing="1"><tr><td><table bgcolor="#ffffff"><tr><td valign="top"><span class="help">Description:</span></td><td>Sends files that contain their own
d73ae94e59c019f5cc3221ee0a0012d02091b40egcHTTP headers</td></tr><tr><td><a class="help" href="module-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="module-dict.html#ModuleIdentifier">Module Identifier:</a></td><td>asis_module</td></tr></table></td></tr></table><h2>Summary</h2>
d73ae94e59c019f5cc3221ee0a0012d02091b40egc <p>This module provides the handler <code>send-as-is</code>
d73ae94e59c019f5cc3221ee0a0012d02091b40egc which causes Apache to send the document without adding most of
d73ae94e59c019f5cc3221ee0a0012d02091b40egc the usual HTTP headers.</p>
d73ae94e59c019f5cc3221ee0a0012d02091b40egc <p>This can be used to send any kind of data from the server,
d73ae94e59c019f5cc3221ee0a0012d02091b40egc including redirects and other special HTTP responses, without
d73ae94e59c019f5cc3221ee0a0012d02091b40egc requiring a cgi-script or an nph script.</p>
d73ae94e59c019f5cc3221ee0a0012d02091b40egc <p>For historical reasons, this module will also process any
d73ae94e59c019f5cc3221ee0a0012d02091b40egc file with the mime type <code>httpd/send-as-is</code>.</p>
d73ae94e59c019f5cc3221ee0a0012d02091b40egc<h2>Directives</h2><p>This module provides no directives.</p><h2>Usage</h2>
d73ae94e59c019f5cc3221ee0a0012d02091b40egc <p>In the server configuration file, associate files with the
d73ae94e59c019f5cc3221ee0a0012d02091b40egc<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>AddHandler send-as-is asis</code></td></tr></table></blockquote>
d73ae94e59c019f5cc3221ee0a0012d02091b40egc <p>The contents of any file with a <code>.asis</code> extension
d73ae94e59c019f5cc3221ee0a0012d02091b40egc will then be sent by Apache to the client with almost no
d73ae94e59c019f5cc3221ee0a0012d02091b40egc changes. Clients will need HTTP headers to be attached, so do
d73ae94e59c019f5cc3221ee0a0012d02091b40egc not forget them. A Status: header is also required; the data
d73ae94e59c019f5cc3221ee0a0012d02091b40egc should be the 3-digit HTTP response code, followed by a textual
d73ae94e59c019f5cc3221ee0a0012d02091b40egc message.</p>
d73ae94e59c019f5cc3221ee0a0012d02091b40egc <p>Here's an example of a file whose contents are sent <em>as
d73ae94e59c019f5cc3221ee0a0012d02091b40egc is</em> so as to tell the client that a file has
<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>Status: 301 Now where did I leave that URL<br/>
HREF="http://xyz.abc.com/foo/bar.html">Joe's</A>