Previous Topic: HTTP Server - General Information

Next Topic: Web Option URL

HTTP Server - Web Option Information

When you initialize Web Option for the first time, the YCRTW2EHTTP (Create Web Option HTTP server) is automatically prompted, to enable you to create an HTTP server instance. By default, this HTTP server instance has the same name as the Web Option environment for which it is being created. When the HTTP server instance is started, a job of the same name starts running in the QHTTPSVR subsystem.

When the HTTP server job receives Web Option requests from the browser (that is, requests that match the specified URL format that follows), it calls the Web Option router program YROUTER that communicates with the Web Option server program YSERVER to either initialize a new Web Option session (start a new interactive job) or reconnect to an existing interactive job. When YSERVER finishes processing the request, a new HTML page is created and sent back to YROUTER (which then sends the HTML page to the client and ends).

The HTTP server configuration specifies that the HTTP server instance listen at the port specified in the YCRTW2EHTP command when the HTTP server instance was created (the default port value is 4100), and treat any requests that come in the following format as Web Option requests (that is, requests to call the Web Option router program YROUTER):

http://myibmi:4100/web2e

The HTTP server configuration file for e.g. HTTP server instance MYWEBENV can be found at the following location in the IFS:

/www/mywebenv/conf/httpd.conf

Further information about the meanings of the directives in the HTTP configuration file can be found in the HTTP Server for IBM i Webmasters Guide. Although the previous configuration directives are the defaults used when Web Option is initialized, you can edit the HTTP configuration, for instance, to allow access to more than one Web Option environment (a production and a testing environment). See the appendix “Commands” for information about creating and editing HTTP server instances with the YCRTW2EHTP (Create Web Option HTTP server) command.