1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5 This file is generated from xml source: DO NOT EDIT
6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7 --><title>mod_asis - Apache HTTP Server</title><link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /><link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /><link href="../images/favicon.ico" rel="shortcut icon" /></head><body><div id="page-header"><p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p><p class="apache">Apache HTTP Server Version 2.0</p><img alt="" src="../images/feather.gif" /></div><div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div><div id="path"><a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="../">Version 2.0</a> > <a href="./">Modules</a></div><div id="page-content"><div id="preamble"><h1>Apache Module mod_asis</h1><table class="module"><tr><th><a href="module-dict.html#Description">Description:
8 </a></th><td>Sends files that contain their own
9 HTTP headers</td></tr><tr><th><a href="module-dict.html#Status">Status:
10 </a></th><td>Base</td></tr><tr><th><a href="module-dict.html#ModuleIdentifier">Module Identifier:
11 </a></th><td>asis_module</td></tr><tr><th><a href="module-dict.html#SourceFile">Source File:
12 </a></th><td>mod_asis.c</td></tr></table><h3>Summary</h3>
13 <p>This module provides the handler <code>send-as-is</code>
14 which causes Apache to send the document without adding most of
15 the usual HTTP headers.</p>
17 <p>This can be used to send any kind of data from the server,
18 including redirects and other special HTTP responses, without
19 requiring a cgi-script or an nph script.</p>
21 <p>For historical reasons, this module will also process any
22 file with the mime type <code>httpd/send-as-is</code>.</p>
23 </div><div id="quickview"><h3 class="directives">Directives</h3><p>This module provides no directives.</p><h3>Topics</h3><ul id="topics"><li><img alt="" src="../images/down.gif" /> Usage</li></ul><h3>See also</h3><ul class="seealso"><li><code class="module"><a href="../mod/mod_headers.html">mod_headers</a></code></li><li><code class="module"><a href="../mod/mod_cern_meta.html">mod_cern_meta</a></code></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="section"><h2>Usage</h2>
25 <p>In the server configuration file, associate files with the
26 <code>send-as-is</code> handler <em>e.g.</em></p>
28 <div class="example"><p><code>AddHandler send-as-is asis</code></p></div>
30 <p>The contents of any file with a <code>.asis</code> extension
31 will then be sent by Apache to the client with almost no
32 changes. Clients will need HTTP headers to be attached, so do
33 not forget them. A Status: header is also required; the data
34 should be the 3-digit HTTP response code, followed by a textual
37 <p>Here's an example of a file whose contents are sent <em>as
38 is</em> so as to tell the client that a file has
42 <div class="example"><p><code>Status: 301 Now where did I leave that URL<br />
43 Location: http://xyz.abc.com/foo/bar.html<br />
44 Content-type: text/html<br />
48 <TITLE>Lame excuses'R'us</TITLE><br />
51 <H1>Fred's exceptionally wonderful page has moved
54 HREF="http://xyz.abc.com/foo/bar.html">Joe's</A>
61 <p>Notes: the server always adds a Date: and Server: header to
62 the data returned to the client, so these should not be
63 included in the file. The server does <em>not</em> add a
64 Last-Modified header; it probably should. </p>
65 </div></div><div id="footer"><p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p><p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div></body></html>