]> granicus.if.org Git - apache/blob - docs/manual/mod/mod_asis.html.en
Update transformations.
[apache] / docs / manual / mod / mod_asis.html.en
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="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div><div id="path"><a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs-project/">Documentation</a> &gt; <a href="../">Version 2.0</a> &gt; <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>
16
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>
20
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>
24
25     <p>In the server configuration file, associate files with the
26     <code>send-as-is</code> handler <em>e.g.</em></p>
27
28 <div class="example"><p><code>AddHandler send-as-is asis</code></p></div>
29
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
35     message.</p>
36
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
39     redirected.</p>
40
41
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 />
45       <br />
46        &lt;HTML&gt;<br />
47        &lt;HEAD&gt;<br />
48        &lt;TITLE&gt;Lame excuses'R'us&lt;/TITLE&gt;<br />
49        &lt;/HEAD&gt;<br />
50        &lt;BODY&gt;<br />
51        &lt;H1&gt;Fred's exceptionally wonderful page has moved
52       to<br />
53        &lt;A
54       HREF="http://xyz.abc.com/foo/bar.html"&gt;Joe's&lt;/A&gt;
55       site.<br />
56        &lt;/H1&gt;<br />
57        &lt;/BODY&gt;<br />
58        &lt;/HTML&gt;
59 </code></p></div>
60
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>