mirror of
https://github.com/apache/httpd.git
synced 2025-08-11 13:22:44 +03:00
necessary to avoid having to keep the two in sync while we convert. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93501 13f79535-47bb-0310-9956-ffa450edef68
126 lines
3.5 KiB
HTML
126 lines
3.5 KiB
HTML
<html>
|
|
<head>
|
|
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<!--
|
|
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
|
This file is generated from xml source: DO NOT EDIT
|
|
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
|
-->
|
|
<title>mod_asis - Apache HTTP Server</title>
|
|
<link href="../style/manual.css" type="text/css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<blockquote>
|
|
<div align="center">
|
|
<img alt="[APACHE DOCUMENTATION]" src="../images/sub.gif"><h3>Apache HTTP Server Version 2.0</h3>
|
|
</div>
|
|
<h1 align="center">Apache Module mod_asis</h1>
|
|
<table cellspacing="1" cellpadding="0" bgcolor="#cccccc">
|
|
<tr>
|
|
<td>
|
|
<table bgcolor="#ffffff">
|
|
<tr>
|
|
<td><span class="help">Description:</span></td><td>
|
|
<description>Sends files that contain their own
|
|
HTTP headers</description>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="module-dict.html#Status" class="help">Status:</a></td><td>Base</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="module-dict.html#ModuleIdentifier" class="help">Module Identifier:</a></td><td>asis_module</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<h2>Summary</h2>
|
|
<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>
|
|
<h2>Directives</h2>
|
|
<p>This module provides no directives.</p>
|
|
<h2>Usage</h2>
|
|
|
|
|
|
<p>In the server configuration file, associate files with the
|
|
<code>send-as-is</code> handler <em>e.g.</em>
|
|
</p>
|
|
|
|
|
|
<blockquote>
|
|
<table cellpadding="10">
|
|
<tr>
|
|
<td bgcolor="#eeeeee"><code>AddHandler send-as-is asis</code></td>
|
|
</tr>
|
|
</table>
|
|
</blockquote>
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<blockquote>
|
|
<table cellpadding="10">
|
|
<tr>
|
|
<td bgcolor="#eeeeee"><code>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>
|
|
<HTML><br>
|
|
<HEAD><br>
|
|
<TITLE>Lame excuses'R'us</TITLE><br>
|
|
</HEAD><br>
|
|
<BODY><br>
|
|
<H1>Fred's exceptionally wonderful page has moved
|
|
to<br>
|
|
<A
|
|
HREF="http://xyz.abc.com/foo/bar.html">Joe's</A>
|
|
site.<br>
|
|
</H1><br>
|
|
</BODY><br>
|
|
</HTML>
|
|
</code></td>
|
|
</tr>
|
|
</table>
|
|
</blockquote>
|
|
|
|
|
|
<p>Notes: the server always adds a Date: and Server: 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
|
|
Last-Modified header; it probably should. </p>
|
|
|
|
<hr>
|
|
<h3 align="center">Apache HTTP Server Version 2.0</h3>
|
|
<a href="./"><img alt="Index" src="../images/index.gif"></a><a href="../"><img alt="Home" src="../images/home.gif"></a>
|
|
</blockquote>
|
|
</body>
|
|
</html>
|