CL Command Reference - CHGHTTPA
CL Command List > CHGHTTPA Reference
Description:
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).
When you change HTTP attributes using this command, the changes apply to all HTTP servers and HTTP server instances, with the following exceptions:
. 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.
. 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.
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.
Restrictions
. You must have input/output system configuration (*IOSYSCFG) special authority to use this command.
Examples:
Example 1: Changing the HTTP Attributes to Automatically Start the Server When You Use the Start TCP/IP (STRTCP) CL Command.
CHGHTTPA AUTOSTART(*YES)
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.
Example 2: Changing the Maximum Number of Server Threads.
CHGHTTPA NBRSVR(10 50)
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.
Example 3: Using the Server Mapping Tables
CHGHTTPA TBLHTTPOUT(*LIBL/TSTHTTPO) TBLHTTPIN(*LIBL/TSTHTTPI)
This command indicates that the next time the server is started, the server will have the following characteristics:
. The ASCII-to-EBCDIC and EBCDIC-to-ASCII conversion is done using the outgoing and incoming mapping tables, rather than with a CCSID value.
. 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.
. 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.