CL based method for adding HTTP Servers on IBMi system

笑着哭i 提交于 2019-12-06 03:45:01

See the Create Apache Server Instance (QzuiCreateInstance) API for a method to automate the creation of http instances.

The QzuiCreateInstance() API allows users to create a new IBM® HTTP Server for i server instance.

Also the QUSRSYS/QATMHINSTC file contains a member for every configured instance. Each member has one record that contains an entry in the format of -apache -d /www/instancename -f conf/httpd.conf. You may be able to create members and add the record without using the API.

Refer to:

Quick Summary:

  1. Each HTTP server instance requires its own member in QUSRSYS/QATMHINSTC

    /QSYS.LIB/QUSRSYS.LIB/QATMHINSTC.FILE/<SERVERNAME>.MBR

  2. The member above should contain one record

    -apache -d /www/<SERVERNAME> -f conf/httpd.conf -AutoStartN

  3. Refer to /www in the IFS for for the file structure of the HTTP Server

    Use <IBMi>:2001/HTTPAdmin/ to create a sample HTTP server, which can be used as the basis for future generated HTTP Servers.

  4. Starting / Stopping the HTTP Server instance

    srtcpsvr *http httpsvr(<SERVERNAME>)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!