127 lines
7.8 KiB
HTML
127 lines
7.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_actions" />
|
||
|
<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_actions" />
|
||
|
<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_actions</title>
|
||
|
</head>
|
||
|
<body id="rzaiemod_actions"><a name="rzaiemod_actions"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<!--Java sync-link--><h1 class="topictitle1">Module mod_actions</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>The module mod_actions provides for executing CGI scripts based on media
|
||
|
type or request method.</p>
|
||
|
<p><strong>Directives</strong></p>
|
||
|
<ul><li><a href="#action">Action</a></li>
|
||
|
<li><a href="#script">Script</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="hr" id="action"><a name="action"><!-- --></a><h2 class="topictitle2">Action</h2>
|
||
|
<div>
|
||
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_actions </td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: Action <em>action-type cgi-script </em></td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none </td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="action__action_context"><a name="action__action_context"><!-- --></a>server config,
|
||
|
virtual host, directory, .htaccess </span></td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: FileInfo </td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="action__action_origin"><a name="action__action_origin"><!-- --></a>Apache </span></td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: Action application/x-www-form-urlencoded
|
||
|
/cgi-bin/file.pgm </td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<p>The Action directive adds an action, which will activate CGI script when
|
||
|
action-type is triggered by the request. </p>
|
||
|
<dl class="block"><dt class="dlterm"><strong>Parameter One</strong>: <em>action-type</em></dt>
|
||
|
<dd><ul><li>The action-type can be either a handler or a MIME content type. It sends
|
||
|
the URL and file path of the requested document using the standard CGI PATH_INFO
|
||
|
and PATH_TRANSLATED environment variables. See <a href="rzaiehandler.htm">Handler for HTTP Server (powered by Apache)</a> for more information on handlers.</li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="block"><dt class="dlterm"><strong>Parameter Two</strong>: <em>CGI-script </em></dt>
|
||
|
<dd><ul><li>The CGI-script can be any valid CGI script or other resource that is capable
|
||
|
of handling the requested action-type. </li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="hr" id="script"><a name="script"><!-- --></a><h2 class="topictitle2">Script</h2>
|
||
|
<div>
|
||
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_actions </td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: Script <em>method CGI-script</em> </td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none </td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="script__script_context"><a name="script__script_context"><!-- --></a>server config,
|
||
|
virtual host, directory </span></td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none </td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="script__script_origin"><a name="script__script_origin"><!-- --></a>Apache </span></td>
|
||
|
</tr>
|
||
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: Script PUT /cgi-bin/bob.pgm </td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<p>The Script directive adds an action, which will activate <em>CGI-script</em> when
|
||
|
a file is requested using the method of <em>method</em>. It sends the URL and
|
||
|
file path of the requested document using the standard CGI PATH_INFO and PATH_TRANSLATED
|
||
|
environment variables. Method names are case-sensitive, so Script <em>PUT</em> and
|
||
|
Script <em>put</em> have two entirely different effects. </p>
|
||
|
<dl class="block"><dt class="dlterm"><strong>Parameter One</strong>: <em>method </em></dt>
|
||
|
<dd><ul><li>The <em>method</em> names listed can be one or more of the following: GET,
|
||
|
POST, PUT, DELETE, CONNECT, OPTIONS, PATCH, PROPFIND, PROPPATCH, MKCOL, COPY,
|
||
|
MOVE, LOCK and UNLOCK. User defined method names can also be used. The <em>method</em> name
|
||
|
is case-sensitive. If GET is used it will also handle HEAD requests. </li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="block"><dt class="dlterm"><strong>Parameter Two</strong>: <em>CGI-script </em></dt>
|
||
|
<dd><ul><li>The <em>CGI-script</em> can be any valid CGI script or other resource that
|
||
|
is capable of handling the requested <em>method</em>.</li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<div class="note"><span class="notetitle">Note:</span> The <em>CGI-script</em> command defines default actions only. If a CGI
|
||
|
script is called, or some other resource that is capable of handling the requested
|
||
|
method internally, it will do so. Also note that CGI script with a <em>method</em> of
|
||
|
GET will only be called if there are query arguments present (for example,
|
||
|
bob.html?hi). Otherwise, the request will proceed normally. </div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|