Previous Topic: Commands

Next Topic: Parameters

YCRTW2EHTP - Create Web Option HTTP Server Instance

This command allows the creation of the HTTP server objects needed to access IBM i from a browser and run Web Option sessions. To run this command, the user must be signed on with a profile that has both *ALLOBJ and *IOSYSCFG special authorities. The following objects are created:

Once the HTTP server instance and configuration are created, they can be started by running:

STRTCPSVR SERVER(*HTTP) HTTPSVR(http-server-instance)

Note: You can also start the HTTP server by using the IBM Web Administration for i5/OS interface. For details on how to do this refer to the appendix Web Administration for i5/OS Interface.

Once both the HTTP server instance and the Web Option server are running, the Web Option can be accessed from a browser by entering the correct URL in the browser address bar.

For example, if the Web Option environment is called MYWEBENV and the IBM i is called MYIBMI and you have taken the default values for the HTTPSVR and PORT parameters on this command, you should execute the following on your IBM i:

STRTCPSVR SERVER(*HTTP) HTTPSVR(MYWEBENV)
YSTRW2ESVR W2EENV(MYWEBENV)

Then the following URL can be used to access the IBM i from a browser using the Web Option with the following URL:

http://myibmi:4100/web2e