1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-08 04:22:21 +03:00
Files
apache/docs/manual/mod/mod_asis.xml
André Malo 3504393928 step by step... :)
<em> -> <var>
add some <seealso>s to mod_action and mod_asis
little markup improvements


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97267 13f79535-47bb-0310-9956-ffa450edef68
2002-10-20 01:05:42 +00:00

76 lines
2.6 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
<modulesynopsis>
<name>mod_asis</name>
<description>Sends files that contain their own
HTTP headers</description>
<status>Base</status>
<sourcefile>mod_asis.c</sourcefile>
<identifier>asis_module</identifier>
<summary>
<p>This module provides the handler <code>send-as-is</code>
which causes Apache to send the document without adding most of
the usual HTTP headers.</p>
<p>This can be used to send any kind of data from the server,
including redirects and other special HTTP responses, without
requiring a cgi-script or an nph script.</p>
<p>For historical reasons, this module will also process any
file with the mime type <code>httpd/send-as-is</code>.</p>
</summary>
<seealso><module>mod_headers</module></seealso>
<seealso><module>mod_cern_meta</module></seealso>
<seealso><a href="../handler.html">Apache's Handler Use</a></seealso>
<section id="usage"><title>Usage</title>
<p>In the server configuration file, associate files with the
<code>send-as-is</code> handler <em>e.g.</em></p>
<example>AddHandler send-as-is asis</example>
<p>The contents of any file with a <code>.asis</code> extension
will then be sent by Apache to the client with almost no
changes. Clients will need HTTP headers to be attached, so do
not forget them. A Status: header is also required; the data
should be the 3-digit HTTP response code, followed by a textual
message.</p>
<p>Here's an example of a file whose contents are sent <em>as
is</em> so as to tell the client that a file has
redirected.</p>
<example>
Status: 301 Now where did I leave that URL<br />
Location: http://xyz.abc.com/foo/bar.html<br />
Content-type: text/html<br />
<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lame excuses'R'us&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;Fred's exceptionally wonderful page has moved to<br />
&lt;a href="http://xyz.abc.com/foo/bar.html"&gt;Joe's&lt;/a&gt;
site.<br />
&lt;/h1&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;
</example>
<note><title>Notes:</title>
<p>The server always adds a <code>Date:</code> and <code>Server:</code>
header to the data returned to the client, so these should not be
included in the file. The server does <em>not</em> add a
<code>Last-Modified</code> header; it probably should.</p>
</note>
</section>
</modulesynopsis>