mod_asis.html revision e0b181d3bfa99dfb992df3024b397660cb7afbe9
886N/A<html xmlns="http://www.w3.org/TR/xhtml1/strict"><head><!--
2362N/A XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
886N/A This file is generated from xml source: DO NOT EDIT
886N/A XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
886N/A --><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
886N/AHTTP 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&nbsp;Identifier:</a></td><td>asis_module</td></tr></table></td></tr></table><h2>Summary</h2>
886N/A <p>This module provides the handler <code>send-as-is</code>
886N/A which causes Apache to send the document without adding most of
886N/A the usual HTTP headers.</p>
886N/A
886N/A <p>This can be used to send any kind of data from the server,
886N/A including redirects and other special HTTP responses, without
886N/A requiring a cgi-script or an nph script.</p>
886N/A
886N/A <p>For historical reasons, this module will also process any
886N/A file with the mime type <code>httpd/send-as-is</code>.</p>
886N/A<h2>Directives</h2><p/><h2>Usage</h2>
886N/A
2362N/A <p>In the server configuration file, associate files with the
2362N/A <code>send-as-is</code> handler <em>e.g.</em></p>
2362N/A
886N/A<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>AddHandler send-as-is asis</code></td></tr></table></blockquote>
886N/A
886N/A <p>The contents of any file with a <code>.asis</code> extension
886N/A will then be sent by Apache to the client with almost no
886N/A changes. Clients will need HTTP headers to be attached, so do
886N/A not forget them. A Status: header is also required; the data
886N/A should be the 3-digit HTTP response code, followed by a textual
886N/A message.</p>
886N/A
886N/A <p>Here's an example of a file whose contents are sent <em>as
886N/A is</em> so as to tell the client that a file has
886N/A redirected.</p>
886N/A
886N/A
886N/A<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>Status: 301 Now where did I leave that URL<br/>
886N/A Location: http://xyz.abc.com/foo/bar.html<br/>
886N/A Content-type: text/html<br/>
886N/A <br/>
886N/A &lt;HTML&gt;<br/>
886N/A &lt;HEAD&gt;<br/>
886N/A &lt;TITLE&gt;Lame excuses'R'us&lt;/TITLE&gt;<br/>
886N/A &lt;/HEAD&gt;<br/>
886N/A &lt;BODY&gt;<br/>
886N/A &lt;H1&gt;Fred's exceptionally wonderful page has moved
886N/A to<br/>
886N/A &lt;A
886N/A HREF="http://xyz.abc.com/foo/bar.html"&gt;Joe's&lt;/A&gt;
886N/A site.<br/>
886N/A &lt;/H1&gt;<br/>
886N/A &lt;/BODY&gt;<br/>
886N/A &lt;/HTML&gt;
886N/A</code></td></tr></table></blockquote>
886N/A
886N/A <p>Notes: the server always adds a Date: and Server: header to
886N/A the data returned to the client, so these should not be
886N/A included in the file. The server does <em>not</em> add a
886N/A Last-Modified header; it probably should. </p>
886N/A<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>