]> granicus.if.org Git - apache/blob - docs/manual/mod/mod_asis.html.en
update transformation - en
[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       -->
8 <title>mod_asis - Apache HTTP Server</title>
9 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
12 <link href="../images/favicon.ico" rel="shortcut icon" /></head>
13 <body>
14 <div id="page-header">
15 <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>
16 <p class="apache">Apache HTTP Server Version 2.1</p>
17 <img alt="" src="../images/feather.gif" /></div>
18 <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
19 <div id="path">
20 <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.1</a> &gt; <a href="./">Modules</a></div>
21 <div id="page-content">
22 <div id="preamble"><h1>Apache Module mod_asis</h1>
23 <div class="toplang">
24 <p><span>Available Languages: </span><a href="../en/mod/mod_asis.html" hreflang="en" title="English">&nbsp;en&nbsp;</a> | <a href="../ja/mod/mod_asis.html" hreflang="ja" title="Japanese">&nbsp;ja&nbsp;</a> | <a href="../ko/mod/mod_asis.html" hreflang="ko" title="Korean">&nbsp;ko&nbsp;</a></p>
25 </div>
26 <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Sends files that contain their own
27 HTTP headers</td></tr>
28 <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Base</td></tr>
29 <tr><th><a href="module-dict.html#ModuleIdentifier">Module Identifier:</a></th><td>asis_module</td></tr>
30 <tr><th><a href="module-dict.html#SourceFile">Source File:</a></th><td>mod_asis.c</td></tr></table>
31 <h3>Summary</h3>
32
33     <p>This module provides the handler <code>send-as-is</code>
34     which causes Apache to send the document without adding most of
35     the usual HTTP headers.</p>
36
37     <p>This can be used to send any kind of data from the server,
38     including redirects and other special HTTP responses, without
39     requiring a cgi-script or an nph script.</p>
40
41     <p>For historical reasons, this module will also process any
42     file with the mime type <code>httpd/send-as-is</code>.</p>
43 </div>
44 <div id="quickview"><h3 class="directives">Directives</h3>
45 <p>This module provides no directives.</p>
46 <h3>Topics</h3>
47 <ul id="topics">
48 <li><img alt="" src="../images/down.gif" /> <a href="#usage">Usage</a></li>
49 </ul><h3>See also</h3>
50 <ul class="seealso">
51 <li><code class="module"><a href="../mod/mod_headers.html">mod_headers</a></code></li>
52 <li><code class="module"><a href="../mod/mod_cern_meta.html">mod_cern_meta</a></code></li>
53 <li><a href="../handler.html">Apache's Handler Use</a></li>
54 </ul></div>
55 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
56 <div class="section">
57 <h2><a name="usage" id="usage">Usage</a></h2>
58
59     <p>In the server configuration file, associate files with the
60     <code>send-as-is</code> handler <em>e.g.</em></p>
61
62     <div class="example"><p><code>AddHandler send-as-is asis</code></p></div>
63
64     <p>The contents of any file with a <code>.asis</code> extension
65     will then be sent by Apache to the client with almost no
66     changes. Clients will need HTTP headers to be attached, so do
67     not forget them. A Status: header is also required; the data
68     should be the 3-digit HTTP response code, followed by a textual
69     message.</p>
70
71     <p>Here's an example of a file whose contents are sent <em>as
72     is</em> so as to tell the client that a file has
73     redirected.</p>
74
75
76     <div class="example"><p><code>
77       Status: 301 Now where did I leave that URL<br />
78       Location: http://xyz.abc.com/foo/bar.html<br />
79       Content-type: text/html<br />
80       <br />
81       &lt;html&gt;<br />
82       &lt;head&gt;<br />
83       &lt;title&gt;Lame excuses'R'us&lt;/title&gt;<br />
84       &lt;/head&gt;<br />
85       &lt;body&gt;<br />
86       &lt;h1&gt;Fred's exceptionally wonderful page has moved to<br />
87       &lt;a href="http://xyz.abc.com/foo/bar.html"&gt;Joe's&lt;/a&gt;
88       site.<br />
89       &lt;/h1&gt;<br />
90       &lt;/body&gt;<br />
91       &lt;/html&gt;
92     </code></p></div>
93
94     <div class="note"><h3>Notes:</h3>
95     <p>The server always adds a <code>Date:</code> and <code>Server:</code>
96     header to the data returned to the client, so these should not be
97     included in the file. The server does <em>not</em> add a
98     <code>Last-Modified</code> header; it probably should.</p>
99     </div>
100 </div>
101 </div>
102 <div class="bottomlang">
103 <p><span>Available Languages: </span><a href="../en/mod/mod_asis.html" hreflang="en" title="English">&nbsp;en&nbsp;</a> | <a href="../ja/mod/mod_asis.html" hreflang="ja" title="Japanese">&nbsp;ja&nbsp;</a> | <a href="../ko/mod/mod_asis.html" hreflang="ko" title="Korean">&nbsp;ko&nbsp;</a></p>
104 </div><div id="footer">
105 <p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p>
106 <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>
107 </body></html>