<LOGIN> April 15, 2026, 4:54 pm

Basic Setup


   

Requirements

Licensed Programs
HTTP
GO LICPGM - 5769DG1 *COMPATIBLE IBM HTTP Server
Start HTTP - STRTCPSVR SERVER(*HTTP) HTTPSVR(instance_name)
Watch HTTP - WRKACTJOB SBS(QHTTPSVR) JOB(server_instance)
Stop HTTP - ENDTCPSVR SERVER(*HTTP) HTTPSVR(instance_name)


TCP / IP
GO LICPGM - #5769-TC1 *COMPATIBLE TCP/IP Connectivity Utilities
Start TCP/IP STRTCP or GO TCPADM, -option 3
Configure TCP CFGTCP or Work with Service Table Entry (WRKSRVTBLE)

Configuration

AS/400 Tasks page -Web Base Server Configuration Menu
Non-secure connection: http://your.server.name:2001/
Secure connection: https://your.server.name:2010/

Enable Client Side GET/POST Method
Configuration and Administration Menu -Check Request Processing

Enable CGI programming
Configuration and Administration Menu -Allow Exec Directive

Security

AS/400 security remains in effect and your server works from an AS/400 user profile (*USRPRF). That profile needs access to every object it serves or updates.

Profile QTNHHTTP
Before you start serving your home page from the Integrated File System (IFS), you must ensure that the world can access the files you want to serve. The user profile QTMHHTTP or *PUBLIC must be granted the following authorities and permissions to enable Web serving:

  • QTMHHTTP or *PUBLIC must have *USE authority to all AS/400 library system objects that you intend to serve.

  • If you use the AccessLog or ErrorLog directive with any integrated file system directory name, the directory must exist and QTMHHTTP or *PUBLIC must have *RWX authority.

  • The QTMHHTTP user profile or *PUBLIC must be granted *RX authority to all objects (HTML pages, graphics, and so on) that you intend to serve.

  • If you want to use Common Gateway Interface (CGI) programs to access any of the objects you serve, the QTMHHTP1 user profile or *PUBLIC needs the same authority to the objects as QTMHHTTP.

  • To let people view your web site, you must allow access to the files that you want to serve and to the directory holding those files. Authorize the HTTP profile QTMHHTTP to access your home page.

IFS - QOpenSys
Were using QOpenSys right! To authorize your server to serve your home page from QOpenSys, authorize the HTTP profile QTMHHTTP to your home page:

  • CHGAUT OBJ('/QOpenSys/WEBSAMP') USER(QTMHHTTP) DTAUT(*RX)

  • CHGAUT OBJ('/QOpenSys/WEBSAMP/WELCOME.HTM') USER(QTMHHTTP) DTAAUT(*RX)

API Service Programs

   




Related Articles




Copyright © 1996 - 2013 JM Solutions, Inc. Houston, TX - All rights reserved.
Website Design JM Solutions   Webmaster