ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/chghttpa.htm

358 lines
14 KiB
HTML

<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Change HTTP Attributes (CHGHTTPA)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="CHGHTTPA.Top_Of_Page"></a>
<h2>Change HTTP Attributes (CHGHTTPA)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#CHGHTTPA.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CHGHTTPA.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CHGHTTPA.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CHGHTTPA"></a>
<p>The Change HTTP Attributes (CHGHTTPA) command is used to change the configurable World Wide Web Hypertext Transfer Protocol (HTTP) server attributes. (This server is also known as the IBM HTTP Server).
</p>
<p>When you change HTTP attributes using this command, the changes apply to all HTTP servers and HTTP server instances, with the following exceptions:
</p>
<ul>
<li>Values specified on configuration and administration forms for a particular instance take precedence over the values specified with the CHGHTTPA command. For detailed information on how to use configuration and administration forms go to the HTTP web site at http://www.ibm.com/eserver/iseries/http.
</li>
<li>Values specified as "instance startup values" on the HTTPSVR parameter of the Start TCP/IP Server (STRTCPSVR) command take precedence over values specified anywhere else.
</li>
</ul>
<p>The changes take effect the next time the HTTP server is started either by the Start TCP/IP (STRTCP) command or by the Start TCP/IP Server (STRTCPSVR) command.
</p>
<p><b>Restrictions</b>
</p>
<ul>
<li>You must have input/output system configuration (*IOSYSCFG) special authority to use this command.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGHTTPA.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGHTTPA.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top"><a href="#CHGHTTPA.AUTOSTART"><b>AUTOSTART</b></a></td>
<td valign="top">Autostart</td>
<td valign="top">*YES, *NO, <b><u>*SAME</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#CHGHTTPA.NBRSVR"><b>NBRSVR</b></a></td>
<td valign="top">Number of server threads</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Minimum</td>
<td valign="top">
1-9999, <b><u>*SAME</u></b>, *DFT</td>
</tr>
<tr>
<td valign="top">Element 2: Maximum</td>
<td valign="top">
1-9999, <b><u>*SAME</u></b>, *DFT, *NOMAX</td>
</tr>
<tr>
<td valign="top"><a href="#CHGHTTPA.CCSID"><b>CCSID</b></a></td>
<td valign="top">Coded character set identifier</td>
<td valign="top">1-65533, <b><u>*SAME</u></b>, *DFT</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="4"><a href="#CHGHTTPA.TBLHTTPOUT"><b>TBLHTTPOUT</b></a></td>
<td valign="top">Server mapping tables</td>
<td valign="top">Single values: <b><u>*SAME</u></b>, *CCSID, *DFT<br>Other values: <i>Element list</i></td>
<td valign="top" rowspan="4">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Outgoing EBCDIC/ASCII table</td>
<td valign="top">
<i>Qualified object name</i></td>
</tr>
<tr>
<td valign="top" style="padding-left:10pt">Qualifier 1: Outgoing EBCDIC/ASCII table</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top" style="padding-left:10pt">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top" rowspan="4"><a href="#CHGHTTPA.TBLHTTPIN"><b>TBLHTTPIN</b></a></td>
<td valign="top"> </td>
<td valign="top">Single values: <b><u>*SAME</u></b>, *CCSID, *DFT<br>Other values: <i>Element list</i></td>
<td valign="top" rowspan="4">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Incoming ASCII/EBCDIC table</td>
<td valign="top">
<i>Qualified object name</i></td>
</tr>
<tr>
<td valign="top" style="padding-left:10pt">Qualifier 1: Incoming ASCII/EBCDIC table</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top" style="padding-left:10pt">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr></table>
<table width="100%">
<tr><td align="right"><a href="#CHGHTTPA.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CHGHTTPA.AUTOSTART"></a>
<h3>Autostart (AUTOSTART)</h3>
<p>Specifies whether to automatically start the HTTP server when TCP/IP is started by the STRTCP command. When HTTP is started by the STRTCPSVR command, the AUTOSTART parameter is ignored and the HTTP server is started regardless of the value of this parameter. If STRTCPSVR *HTTP is specified, and the HTTP server is already running, then the start request is denied.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The AUTOSTART value does not change if it was previously set. Otherwise, *NO is used.
</dd>
<dt><b>*NO</b></dt>
<dd>Do not start the HTTP server when the STRTCP command is issued. If you do not intend to use HTTP, set this parameter to *NO.
</dd>
<dt><b>*YES</b></dt>
<dd>Start the HTTP server when the STRTCP command is issued.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGHTTPA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGHTTPA.NBRSVR"></a>
<h3>Number of server threads (NBRSVR)</h3>
<p>Specifies the minimum and maximum number of HTTP server threads to start when HTTP is started by either the Start TCP/IP (STRTCP) command or the Start TCP/IP Server (STRTCPSVR) command.
</p>
<p>
<b>Note: </b>The value specified for the minimum number of server threads is ignored. The value has been left on the command for compatibility reasons.
</p>
<p>The maximum number of server threads value is used as the default setting for the HTTP Server ThreadsPerChild directive. This value affects all HTTP servers that do not have a ThreadsPerChild configuration directive specified. A ThreadsPerChild directive specified in the HTTP server configuration file, or as a start up value, overrides this server attribute.
</p>
<p>See the HTTP server documentation on the ThreadsPerChild directive for more information regarding the maximum number of server threads.
</p>
<p><b>Element 1: Minimum</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The minimum number of server threads that was previously set does not change. Otherwise, 10 is used.
</dd>
<dt><b>*DFT</b></dt>
<dd>The minimum number of server threads is set to the default value of 10.
</dd>
<dt><b><i>1-9999</i></b></dt>
<dd>Specify the minimum number of server threads requested to start.
</dd>
</dl>
<p><b>Element 2: Maximum</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The maximum number of server threads previously set does not change. Otherwise, 40 is used.
</dd>
<dt><b>*NOMAX</b></dt>
<dd>There is no limit to the maximum number of server threads that is allowed to start.
</dd>
<dt><b>*DFT</b></dt>
<dd>The maximum number of server threads is set to the default value of 40. If you allow this parameter to default, the minimum number of server threads specified cannot be greater than 40.
</dd>
<dt><b><i>1-9999</i></b></dt>
<dd>Specify the maximum number of server threads that are allowed to start. This value must be greater than the value specified for the first element of this parameter.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGHTTPA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGHTTPA.CCSID"></a>
<h3>Coded character set identifier (CCSID)</h3>
<p>If the character set and code page are not identified in the MIME header from the World Wide Web (WWW) browser, this value is used to determine the ASCII coded-character set identifier (CCSID) value to be used for translations when doing ASCII-to-EBCDIC and EBCDIC-to-ASCII mapping. Mapping is determined using the MIME header values or the specified ASCII CCSID and the EBCDIC default CCSID of the job.
</p>
<p>Outgoing and incoming mapping can optionally be done with mapping tables defined in the TBLHTTPOUT and TBLHTTPIN parameters. Normally the TBLHTTPOUT and TBLHTTPIN parameters are set to the default of *CCSID or *DFT, with both indicating that the value used in the CCSID parameter is used for mapping.
</p>
<p>If a mapping table is to be used for outgoing mapping, a table object can be specified in the TBLHTTPOUT parameter. Then this table object is used for outgoing mapping instead of the CCSID value.
</p>
<p>Incoming mapping can be changed to use a mapping table in the same manner by specifying a table object in the TBLHTTPIN parameter. This mapping table then overrides the specified CCSID value and is used for incoming mapping.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The CCSID value that was previously set does not change; otherwise, 00819 (ISO 8859-1 8-bit ASCII) is used.
</dd>
<dt><b>*DFT</b></dt>
<dd>The CCSID value is 00819 (ISO 8859-1 8-bit ASCII).
</dd>
<dt><b><i>1-65533</i></b></dt>
<dd>Specify the CCSID to be used. This value is validated to ensure a valid ASCII CCSID has been requested.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGHTTPA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGHTTPA.TBLHTTPOUT"></a>
<h3>Server mapping tables (TBLHTTPOUT)</h3>
<p>Specifies the table object that is to be used to map all outgoing server data in HTTP. Outgoing server data is mapped from EBCDIC to ASCII.
</p>
<p>If a table object is specified for the TBLHTTPOUT parameter, the table object is used for outgoing mapping. Otherwise, the CCSID parameter is used to determine outgoing mapping.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The TBLHTTPOUT value does not change if it was previously set; otherwise, *CCSID is used.
</dd>
<dt><b>*CCSID</b></dt>
<dd>The CCSID parameter is used to determine outgoing mapping.
</dd>
<dt><b>*DFT</b></dt>
<dd>The CCSID parameter is used to determine outgoing mapping.
</dd>
</dl>
<p><b>Qualifier 1: Outgoing EBCDIC/ASCII table</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the table object to be used for mapping the outgoing HTTP server data.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the job's library list are searched until the first match is found.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGHTTPA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGHTTPA.TBLHTTPIN"></a>
<h3>Library (TBLHTTPIN)</h3>
<p>Specifies the table object that is used to map all incoming server data in HTTP. Incoming server data is mapped from ASCII to EBCDIC.
</p>
<p>If a table object is specified for the TBLHTTPIN parameter, the table object is used for incoming mapping. Otherwise, the CCSID parameter is used to determine incoming mapping.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The TBLHTTPIN value does not change if it was previously set; otherwise, *CCSID is used.
</dd>
<dt><b>*CCSID</b></dt>
<dd>The CCSID parameter is used to determine incoming mapping.
</dd>
<dt><b>*DFT</b></dt>
<dd>The CCSID parameter is used to determine incoming mapping.
</dd>
</dl>
<p><b>Qualifier 1: Incoming ASCII/EBCDIC table</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the table object to be used for mapping the incoming HTTP server data.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the job's library list are searched until the first match is found.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGHTTPA.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGHTTPA.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Changing the HTTP Attributes to Automatically Start the Server When You Use the Start TCP/IP (STRTCP) CL Command.</b>
</p>
<p>
<pre>
CHGHTTPA AUTOSTART(*YES)
</pre>
</p>
<p>This command indicates that the server will automatically start up the next time that you use the STRTCP command. Server instances will start automatically if they do not have AUTOSTART overridden.
</p>
<p><b>Example 2: Changing the Maximum Number of Server Threads.</b>
</p>
<p>
<pre>
CHGHTTPA NBRSVR(10 50)
</pre>
</p>
<p>This command indicates that a maximum of 50 server threads will be allowed to start to handle incoming HTTP requests. Note that the minimum number of server threads is allowed to be specified, but is ignored.
</p>
<p><b>Example 3: Using the Server Mapping Tables</b>
</p>
<p>
<pre>
CHGHTTPA TBLHTTPOUT(*LIBL/TSTHTTPO)
TBLHTTPIN(*LIBL/TSTHTTPI)
</pre>
</p>
<p>This command indicates that the next time the server is started, the server will have the following characteristics:
</p>
<ul>
<li>The ASCII-to-EBCDIC and EBCDIC-to-ASCII conversion is done using the outgoing and incoming mapping tables, rather than with a CCSID value.
</li>
<li>The server uses a copy of the information that you find in the TSTHTTPO table object for mapping outgoing data in HTTP. The table object is found by using the library list for the thread.
</li>
<li>The server uses a copy of the information that you find in the TSTHTTPI table object for mapping incoming data in HTTP. The table object is found by using the library list for the thread.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGHTTPA.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGHTTPA.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>TCP8050</b></dt>
<dd>*IOSYSCFG authority required to use &amp;1.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGHTTPA.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>