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