69 lines
3.8 KiB
HTML
69 lines
3.8 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="topic" />
|
|
<meta name="DC.Title" content="Module mod_asis" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2002,2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2002,2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzaiemod_asis" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Module mod_asis</title>
|
|
</head>
|
|
<body id="rzaiemod_asis"><a name="rzaiemod_asis"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<!--Java sync-link--><h1 class="topictitle1">Module mod_asis</h1>
|
|
<div><div class="important"><span class="importanttitle">Important:</span> Information
|
|
for this topic supports the latest PTF levels for HTTP Server for i5/OS .
|
|
It is recommended that you install the latest PTFs to upgrade to the latest
|
|
level of the HTTP Server for i5/OS. Some of the topics documented here are
|
|
not available prior to this update. See <a href="http://www-03.ibm.com/servers/eserver/iseries/software/http/services/service.html" target="_blank">http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm</a> <img src="www.gif" alt="Link outside Information Center" /> for more information. </div>
|
|
<p><strong>Summary</strong></p>
|
|
<p>This module allows file types to be defined such that HTTP Server sends
|
|
them without adding HTTP headers. mod_asis supports EBCDIC files. The module
|
|
converts file content from EBCDIC to ASCII. 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. </p>
|
|
<p><strong>Usage </strong></p>
|
|
<p>In the server configuration file, define a new mime type called httpd/send-as-is
|
|
. For example: </p>
|
|
<pre class="block">AddType httpd/send-as-is asis </pre>
|
|
<p>This defines the .asis file extension as being of the new httpd/send-as-is
|
|
mime type. The contents of any file with a .asis extension are then be sent
|
|
by HTTP Server to the client with almost no changes. Clients will need HTTP
|
|
headers to be attached. A Status: header is also required; the data should
|
|
be the 3-digit HTTP response code, followed by a textual message. </p>
|
|
<p>Here is an example of a file whose contents are sent asis, telling the
|
|
client that a file has redirected.</p>
|
|
<pre class="block">Status: 301 Now where did I leave that URL
|
|
Location: http://xyz.abc.com/roch/bar.html
|
|
Content-type: text/html
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>Fred's Page</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>Fred's exceptionally wonderful page has moved to
|
|
<A HREF="http://xyz.abc.com/roch/bar.html">Joe's</A> site.
|
|
</H1>
|
|
</BODY>
|
|
</HTML></pre>
|
|
<div class="note"><span class="notetitle">Note:</span> The server adds a Date: and Server: header to the data returned to the
|
|
client.</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |