Search Images Maps Play YouTube News Gmail Drive More »
Sign in
Screen reader users: click this link for accessible mode. Accessible mode has the same essential features but works better with your reader.

Patents

  1. Advanced Patent Search
Publication numberUS20020065878 A1
Publication typeApplication
Application numberUS 09/865,946
Publication dateMay 30, 2002
Filing dateMay 25, 2001
Priority dateAug 17, 1998
Also published asUS6393477, US6493749, US20020052935
Publication number09865946, 865946, US 2002/0065878 A1, US 2002/065878 A1, US 20020065878 A1, US 20020065878A1, US 2002065878 A1, US 2002065878A1, US-A1-20020065878, US-A1-2002065878, US2002/0065878A1, US2002/065878A1, US20020065878 A1, US20020065878A1, US2002065878 A1, US2002065878A1
InventorsFrank Paxhia, Kurt Streifert
Original AssigneeInternational Business Machines Corporation
Export CitationBiBTeX, EndNote, RefMan
External Links: USPTO, USPTO Assignment, Espacenet
System and method for an administration server
US 20020065878 A1
Abstract
System and method for serving HTML pages to web browsers for the purpose of administration and configuration. A plurality of instances of WWW servers is provided, with one such instance including a configuration file which is restricted in usage and not alterable by way of any HTML configuration or administration forms. This plurality of instances of internet connection servers is managed by way of a web browser which displays and interacts with a plurality of HTML forms and corresponding common gateway interface binary programs which are provided selectively for creating and deleting instances of servers, associating a configuration file with a server instance, changing server instance start up parameters, and starting, ending, and restarting server instances.
Images(20)
Previous page
Next page
Claims(4)
we claim:
12. Method for operating an administration server, comprising the steps of:
starting said administration server;
reading and parsing an administration server instance file;
starting a main administration thread with any override parameters read from said server instance file;
reading and parsing administration server read-only and read-write configuration files;
building a rules list from configuration files directives;
for all server attributes in said configuration files, setting up any required error, logging and alarm threads; and setting up worker threads;
connecting to socket specified in configuration files, override parameters from attributes file, or services table;
waiting in an accept loop for a next browser request at said socket;
upon receiving a browser request, passing a socket descriptor to a worker thread;
reading said browser request and applying said rules list to said browser request and, upon a first match, selectively processing an applicable protect, pass, fail, execute or map rule to generate an output;
returning said output to said browser;
closing the connection to said socket; and
returning said worker thread to said worker thread pool.
13. A program storage device readable by a machine, tangibly embodying a program of instructions executable by a machine to perform method steps for operating an administration server, said method steps comprising:
starting said administration server;
reading and parsing an administration server instance file;
starting a main administration thread with any override parameters read from said server instance file;
reading and parsing administration server read-only and read-write configuration files;
building a rules list from configuration files directives;
for all server attributes in said configuration files, setting up any required error, logging and alarm threads; and setting up worker threads;
connecting to socket specified in configuration files, override parameters from attributes file, or services table;
waiting in an accept loop for a next browser request at said socket;
upon receiving a browser request, passing a socket descriptor to a worker thread;
reading said browser request and applying said rules list to said browser request and, upon a first match, selectively processing an applicable protect, pass, fail, execute or map rule to generate an output;
returning said output to said browser;
closing the connection to said socket; and
returning said worker thread to said worker thread pool.
14. A computer program product or computer program element for operating an administration server according to the steps of:
starting said administration server;
reading and parsing an administration server instance file;
starting a main administration thread with any override parameters read from said server instance file;
reading and parsing administration server read-only and read-write configuration files;
building a rules list from configuration files directives;
for all server attributes in said configuration files, setting up any required error, logging and alarm threads; and setting up worker threads;
connecting to socket specified in configuration files, override parameters from attributes file, or services table;
waiting in an accept loop for a next browser request at said socket;
upon receiving a browser request, passing a socket descriptor to a worker thread;
reading said browser request and applying said rules list to said browser request and, upon a first match, selectively processing an applicable protect, pass, fail, execute or map rule to generate an output;
returning said output to said browser;
closing the connection to said socket; and
returning said worker thread to said worker thread pool.
15. An administration server system, comprising:
an administration server;
an administration server instance file:
an administration server read-only configuration file for storing configuration directives;
an administration server read-write configuration file for storing configuration directives;
a services table;
a rules list;
a worker thread pool;
said administration server for reading and parsing said administration server instance file; starting a main administration thread with any override parameters read from said administration server instance file; reading and parsing said administration server read-only and read-write configuration files; building said rules list from configuration files directives; for all server attributes in said configuration files, setting up any required error, logging and alarm threads, and setting up worker threads; connecting to a socket specified in said configuration files, override parameters from said attributes file, or said services table; waiting in an accept loop for a next browser request at said socket; upon receiving a browser request, passing a socket descriptor to a worker thread; reading said browser request and applying said rules list to said browser request and, upon a first match, selectively processing an applicable protect, pass, fail, execute or map rule to generate an output; returning said output to said browser; closing the connection to said socket; and returning said worker thread to said worker thread pool.
Description
CROSS-REFERENCES TO RELATED APPLICATIONS

[0001] This application is a divisional of U.S. patent application Ser. No. 09/135,147 filed Aug. 17, 1998 by Frank V. Paxhia and Kurt A. Streifert for System and Method for an Administration Server.

[0002] U.S. patent applications Ser. No. 09/135,149 filed 17 August 1998, entitled “SYSTEM AND METHOD FOR CONFIGURING AND ADMINISTERING MULTIPLE INSTANCES OF WEB SERVERS”, and Ser. No. 09/135,253 filed Aug. 17, 1998, entitled “SYSTEM AND METHOD FOR PORTING A MULTITHREADED PROGRAM TO A JOB MODEL”, are filed concurrently herewith and assigned to the same assignee. They contain related subject matter incorporated herein by this reference.

BACKGROUND OF THE INVENTION

[0003] 1. Technical Field of the Invention

[0004] This invention pertains to configuration and administration of system components using World Wide Web (WWW) technology. In particular, this invention provides a plurality of instances of web server, with one of them being preconfigured for this administration function to allow web browsers to configure web-configurable components.

[0005] 2. Background Art

[0006] The IBM AS/400 system traditionally uses 5250 terminal protocol to configure and administer system components, such as start or stop a server, change functional attributes, authorize users, and so forth. This 5250 terminal protocol requires a 5250 terminal or 5250 emulator that is known as a green screen display. A graphical user interface (GUI) presents to a user a much more user-friendly interface than a green screen display, and there is a need in the art to provide a graphical user interface for system configuration and administration functions.

[0007] It is quite common today for any system to have a web server that hosts some site or sites. Such sites provide web content that is made available to web browsers. In general the goals of an enterprise with such a site are typical business goals that pertain to return on investment or customer satisfaction. Typically, such an enterprise has system sites that deal with business applications (such as an electronic shopping mall), or information sites (such as the company's product specifications, or employee benefit plans). These sites share in common the protocols that make web browsing possible. These include use of the HyperText Transfer Protocol (HTTP) and HyperText Markup Language (HTML), a Common Gateway Interface (CGI) that allows system administrators to write dynamic web applications, and the content itself, that is the HTML files, images, java applets, wave (audio) files, or other multimedia resources known to (that is, accessible by) browsers.

[0008] Some servers have the ability to manage other servers. However, systems today do not have multiple copies of those servers, and there is a need in the art for an administration server capable of managing multiple copies or instances of servers.

[0009] Further, there is a need in the art for an administration Internet connection server (ICS) that is a web (HTTP) server for serving a specialized set of applications that provide for configuration and administration of web enabled system components. These system components can be anything on an enterprise or site system that have an application written for and served by an administration server for the purpose of being configured by a web browser.

[0010] However, for security purposes, this administration Internet connection server must not share commonality with other ICS HTTP server(s) serving the web content that is made available by the site system to web browsers. Such an administration server preferably allows a user to configure certain aspects of the server, such as access and error logging, or the ability to run secure HTTP transactions (also referred to as HTTPs). However, this administration server must be controlled with respect to serving its content to browsers irrespective of such configuration by the user.

[0011] Further, there exists the need in the art to provide an administration Internet connection server (also referred to as an administration server) which is isolated from and therefore does not detract in any way from other, or “normal”, HTTP server(s) at the site, and does not impose any requirements that the system use its “normal” web server(s) for what is considered system administration and configuration. It is particularly important that any changes the site makes to configuration of its “normal” HTTP server(s) (good or bad) cannot affect the configuration of the administration server. Furthermore, it is a requirement that any heavily loaded “normal” web server(s) at a site will not affect performance of the administration server, and conversely, the act of using the administration server, that is configuring and administering some system component, will not have any effect of the performance of other HTTP server(s) at the site.

[0012] It is an object of the invention to provide an improved administration server.

[0013] It is a further object of the invention to provide an administration server which serves administration and configuration applications to a browser's graphical user interface.

[0014] It is a further object of the invention to provide an administration server which serves to a browser capability for administering and configuring web enabled system components.

[0015] It is a further object of the invention to provide an improved administration server which is isolated from other servers at the site.

[0016] It is a further object of the invention to provide an improved administration server which is isolated from other servers at the site such that loading of either does not adversely impact the other.

[0017] It is a further object of the invention to provide an improved administration server which enables the management of multiple copies or instances of servers.

[0018] It is a further object of the invention to provide an administration server implemented as a browser.

SUMMARY OF THE INVENTION

[0019] In accordance with the invention, a system and a method are provided for serving HTML pages to web browsers for the purpose of administration and configuration. A plurality of instances of WWW servers is provided, with one such instance including a configuration file which is restricted in usage and not alterable by way of any HTML configuration or administration forms.

[0020] Other features and advantages of this invention will become apparent from the following detailed description of the presently preferred embodiment of the invention, taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0021]FIG. 1 is a high level system diagram of the administration server of the invention.

[0022]FIG. 2 is a high level system diagram illustrating the administration server of the invention as one instance of multiple server instances.

[0023]FIG. 3 is a diagrammatic representation of the configuration and server instance forms presented by the administration server of the invention at a graphical user interface.

[0024]FIG. 4 is a high level system diagram illustrating the main components of the system of the invention.

[0025]FIG. 5 is a flow diagram of the method of the invention.

[0026]FIG. 6 is a flow diagram of the *ADMIN site of the preferred embodiment of the invention.

[0027]FIG. 7 is a diagram illustrating the AS/400 tasks page.

[0028]FIG. 8 is a diagram illustrating the front page, or first page for configuration and administration of ICS in accordance with a preferred embodiment of the invention.

[0029]FIG. 9 is a diagram illustrating the general configuration and administration page for adding a new ICS server instance or to manage an existing one in accordance with the preferred embodiment of the invention.

[0030]FIG. 10 is a diagram illustrating a server instance page in accordance with the preferred embodiment of the invention.

[0031]FIG. 11 is a diagram illustrating a representation of instance parameters in accordance with the preferred embodiment of the invention.

[0032]FIG. 12 is a diagram illustrating a representation of configuration and administration in accordance with the preferred embodiment of the invention.

[0033]FIG. 13 is a diagram illustrating a basic page.

[0034]FIG. 14 is a diagram illustrating a confirmation page.

[0035]FIG. 15 is a diagram illustrating secure server instance management files and formats.

[0036]FIG. 16 is a diagram illustrating the format of the start server command.

[0037]FIG. 17 is a diagram illustrating the format of the end server command.

[0038]FIG. 18 is a high level system diagram illustrating server threading.

[0039]FIG. 19 is a high level flow diagram illustrating server threading flow.

[0040]FIG. 20 illustrates the job structure of the HTTP server of the preferred embodiment of the invention.

BEST MODE FOR CARRYING OUT THE INVENTION

[0041] In accordance the preferred embodiment of the invention, an hypertext transfer protocol (HTTP) web server is provided for serving browsers. A web server that supports the industry standard HTTP protocol is given a hardened (e.g., read only) configuration. A task page is provided that provides links to any application that can be configured via a browser. This one task page is served by this administration HTTP server. Upon selecting a link to a configurable application, the selected pages which are also served by the administration HTTP server, are used to complete the configuration task. The user interface throughout this process is the browser.

[0042] The pages, and forms contained therein, are accessed by a series of links from the tasks page, and provide the graphical user interface (GUI) for configuring and administering those applications. Examples of such applications include internet connection secure server, firewall, net.data, digital certificate manager, net.commerce and net.question. These become a link off of the tasks page and each provides a series of web pages which are traversed to achieve the desired configuration.

[0043] In accordance with the invention, forms are designed and implemented so that an internet connection server can be configured. A configuration file for an Internet connection server is built by selecting and entering values upon these forms. One or more copies or instances of the Internet connection server are provided, and these forms are used to manage these multiple instances. The administration server of this invention enables creation, selection and modification of other server instances by leading an authorized user at a browser through a series of GUI forms to accomplish the change, addition, start, stop, or other action.

[0044] For example, a plurality of instances of Internet connection servers (ICSs) exist at a site and need to be managed. A form is presented by the administration server listing this plurality of other servers, and the user selects the instance (that is, the other server) he needs to administer (start, stop, change, add, delete). Upon selecting a server and an action, a page is presented or displayed at the browser by the administration server which will allow further configuration, the content of that page depending upon the action selected.

[0045] In accordance with the preferred embodiment of the invention, there is provided an administration server that is accessed via a web browser.

[0046] Referring to FIGS. 1 and 2, ADMIN server 310 represents an instance of an HTTP server. In this preferred embodiment, there are provided an instance file 318 with one member and a configuration file with one member pair 314, 316 called ADMIN for installation separate and distinct from another instance 311 and configuration file 317 that are also provided for installation, but for a system administrator's use. A global attributes file 325 is provided. Instance file 317 overrides the contents of the config file(s) 314, 316, which overrides the contents of the attributes file 325. Attributes file 325 is referred to as the global attributes file because there is only one file member, used by all server instances; whereas each instance uses a unique instance file member 318 and a particular configuration (config) file member 314 (except admin server 310, which uses 2 config file members 314, 316).

[0047] In accordance with a preferred embodiment of the invention, an Internet connection secure server has a default setup that includes two HTTP server instances 310, 311. One instance is the ADMIN server 310 that is required for configuration and the other is DEFAULT server 311. Default server 311 can be started as-is with all of its default settings 317, 319, 321, 323. The server administrator can customize the default server 311 for his own environment and add additional servers as desired.

[0048] Referring to FIG. 2 in connection with FIG. 7, in accordance with a preferred embodiment, ADMIN server 310 serves an AS/400 configuration home page 350 that links to other browser configurable products, such as is represented by link 352. In operation, when the user (that is, the system administrator) points his browser (this is analogous to saying http://as400hostname.domain:2001) to the system administration home page, the browser is presented with a page 350 asking what is to be administered or configured, including a hot link 352 to HTTP server configuration pages, or alternatively a different page showing configuration screens for the other products.

[0049] Upon selecting link 352, the user is presented initial page 360. Upon selecting configure HTTP servers 362 on initial page 360, the system administrator is presented a general configuration and administration form 370 (also referred to as the server instance form or instance manager page). The system administrator is in this manner allowed to select either an instance 371 to work with, add a new instance, or change the default attributes that potentially affect all HTTP servers. Additionally, a user may choose the other hotlinks 364, 366, 368 on this initial page 360 to see some sample home pages, some URLs for help, or to return to initial page 350.

[0050] Referring to FIG. 3, instance manager page 370 provides various choices for working with an instance 371, including CHANGE 376, DELETE 378, START 380, STOP 382 and RESTART 384. Appropriate messages for these commands are shown after the command has executed. Help text is provided to guide a user through the steps. These selections are then turned into appropriate control commands in the case of START 380, STOP 382 or RESTART 384, or will delete an instance 371 in the instance file 318 if DELETE 378 is selected.

[0051] In accordance with a preferred embodiment of the invention, an interface for configuring the AS/400 Secure Web Server includes web pages and CGI scripts and a configuration file validation program. However, the web-based configuration function of the preferred embodiment of the invention does not use a separate validation program. Rather, validation of user entries in the configuration pages 316 is built into the CGI programs. Which CGI program gets invoked depends on which button (Apply, Change, . . . ) is pushed or which link (i.e., Global Attribute Values) is clicked, regardless of the rest of the page content. These CGI programs produce the code set forth in Tables 4-9.

[0052] The CGI scripts read current settings from the configuration file and build configuration pages filled in with those settings. CGI scripts are also used to read the values contained in the configuration pages and write those values out to the configuration file. These scripts may be modified to read or write from or to a configuration file 314 or an instance file 318, as appropriate. As will be apparent to those skilled in the art, this is common cgi usage, and need not be further described.

[0053] In accordance with a preferred embodiment of the invention, secure server configuration proceeds as follows:

[0054] 1. The user opens the “Internet Connection Server for AS/400” page.

[0055] 2. As each general configuration and administration form 370 (FIG. 3, a specific example of which is illustrated in FIG. 9 as form 370) is accessed, the “ins CGI script 391 obtains the appropriate values from the configuration file 316, instance file 318, global attributes file 325 and builds, for example, a page 400 (FIG. 10), which is filled in with those values and displayed to the user at the browser.

[0056] 3. If the user clicks on the “Apply” button 412 (FIG. 10), an “out” CGI script 391 calls a validation routine. If valid, the configuration directives are written to the instance file 318 and a confirmation page is returned. Otherwise, an error page is returned.

[0057] 4. If the user clicks on “Reset” button 414 (FIG. 10), the web browser 304 resets the input fields.

[0058] Referring to FIG. 4, another view of the main components characterizing the environment of the administration and configuration system *ADMIN 310 of the invention includes system 300 and web browser 304 in communication over a network 302. In accordance with the preferred embodiment of the invention, web browser 304, any industry compliant web browser, is the user interface required to use this *ADMIN server 310. (An alterntive user interface is described hereafter in connection with start TCP server command 540 and end TCP server command 550, FIGS. 16 and 17, respectively.) Web browser 304 communicates through network 302 using HTTP protocols to the Administration (HTTP) Internet Connection Server (ICS) 310, also referred to as *ADMIN server 310.

[0059] *ADMIN server 310 is started, and it's functionality is controlled, via administration instance file 318, read-only administration configuration file 314, read-write administration

[0060] configuration file 316, and global attributes file 325. The system administrator can change configuration file 316 in order to maintain system compatibility; however, read-only administration configuration file 314 contains those parameters which are required to be served by *ADMIN server 310 to browser 304, and cannot be altered by the system administrator. That is, read-only configuration file 314 is hardened: while all directives can be put in read-write configuration file 316, they will not override all of the directives that are in read-only file 314. The contents of file 314 are shown in Table 3. Server 310 provides a Common Gateway Interface (CGI) 308 for the purpose of executing CGI applications 306. These applications 306 are described later.

[0061] It is quite common today for any system to have a web server that hosts some site or sites. Such sites provide web content 312 that is made available to web browsers 304, such as information sites (for example, the company's product specifications, or employee benefit plans). These sites share in common the protocols that make web browsing possible, that is the HyperText Transfer Protocol (HTTP) and HyperText Markup Language (HTML), a Common Gateway Interface (CGI) 308 that allows system administrators to write dynamic web applications 306, and content files 312 such as HTML files, images, java applets, wave (audio) files, or other multimedia resources known to browsers.

[0062] Administration (HTTP) Internet Connection Server (*ADMIN server) 310 is a web (HTTP) server, however it serves a specialized set of applications 306, namely those that deal with the configuration and administration of web enabled system components. These system components 306 can be anything on the system that has been web enabled. By web enabled is meant that an application 306 has been written and served via the *ADMIN server 310 for the purpose of being configured via a web browser 304.

[0063] *ADMIN server 310 is unique (from other servers) in that it does not share any commonality with the System administrator's ICS (HTTP) server(s) 311—that is it is a separate instance of the ICS server, with separate configuration and instance files 316 and 318, and a specific URL (Uniform Resource Locator). *ADMIN server 310 also has a special “read-only” configuration file 314 that is shipped and installed with the *ADMIN server 310 so the operation of the *ADMIN server 310 can be controlled with regards to serving its content, irrespective of what the system administrator may want to configure from browser 304. In accordance with this preferred embodiment, the system administrator is allowed to configure certain aspects of the server such as access and error logging, or the ability to run secure HTTP (HTTPs) transactions.

[0064] Read-only configuration file 314 is read by the web server before read-write configuration file 316. There are some directives which affect web serving in such a way that the first directive encountered that covers a particular web activity is the directive that will be used to control that activity. In effect, these directives cannot be overridden. They include Protect, Map, Pass, and Exec. Thus, much of the usage of the server that is controlled by the contents of the read-only file 314 will not be overridden by the contents of the read-write file 316. Instance parameters 318 would override the contents of the read-only file 314, but are limited in number, and are shown in FIG. 11. For example, the contents of the read-only file 314 allows the tasks page to be served, and this behavior cannot be overridden.

[0065] Thus, *ADMIN server 310 does not detract in any way from the system administrator's “normal” HTTP server(s) 311, and does not impose any requirements that the system administrator use his “normal” web server(s) 311 for what is considered system administration and configuration. The web-site (content) the system administrator wants to host is separate and distinct from *ADMIN server 310, and any changes the system administrator at browser 304 makes to his “normal” HTTP server(s) 311 configurations 317 (good or bad) cannot affect the configuration 314, 316 of *ADMIN servers 310. Furthermore, any heavily loaded system administrator's “normal” web server(s) 311 will not affect performance of *ADMIN server 310, and conversely, the act of using *ADMIN server 310, that is configuring and administering some system component 306, will not have any effect on the performance of the system administrator's other HTTP server(s) 311.

[0066] In order to keep the content of *ADMIN server 310 separate and distinct from the “normal” HTTP server(s) 311, it is necessary to provide a unique URL (Uniform Resource Locator) so browser 304 can access the home page of *ADMIN server 310. There are two different approaches to achieving this unique URL. The first is to provide a unique host address, and the URL would be: http://some unique address. However, the system administrator would have to configure this, thereby implying a multi-homed host 300, and obtain a separate IP address which may prove to be difficult. The second approach is to “port qualify” the URL so that instead of using the well known port for HTTP (which is port 80), and the well known port for HTTPs (which is port 443), a different port 303, 305 is chosen for each protocol, namely port 2001 for HTTP, and 2010 for HTTPs. Since it is possible to have a conflict with other socket applications, these ports are configurable. The URL for *ADMIN server 310 then becomes http://your_host_name:2001—this is what the system administrator would enter at browser 304 to access the home page 350 (FIG. 7) of *ADMIN server 310.

[0067] In accordance with this preferred embodiment, implementation of *ADMIN server 310 includes the following: an industry standard HTTP server 310 that has a CGI interface 308; the ability to have (execute) multiple copies of an HTTP-ICS server, including *ADMIN server 310 and at least one other server 311; control of this *ADMIN server 310 by means of a configuration file 314, 316, instance file 318 and global attributes file 325; separate and distinct configuration and instance files 317 for the other ICS server(s) 311; a “read-only” configuration file 314 that guarantees operation of the *ADMIN server 310 (this file 314 is shipped by the manufacturer to the customer whose system 301 this is); a “read-write” configuration file 316 giving the system administrator the ability to configure some aspects of *ADMIN server 310; the ability to configure *ADMIN server 310 to bind to ports 303, 305 different than the well known HTTP and HTTPs ports. CGI interface 308 provides connection between the configuration pages and the CGIs.

[0068] In operation, referring to FIG. 5, after a start command 320 is received, in step 322 *ADMIN instance file 318 is read and appropriate parameters are passed to the main thread of the program. In step 324, the main thread then reads the configuration files 314, 316, builds a rules list from them, and then connects to the HTTP (and perhaps HTTPs) ports. In steps 326 and 328, the main thread of server 310 listens (waits) on the HTTP port, and the SSL listener thread listens (waits) on the HTTPs port for work to arrive (that is, requests from browser 304), and then passes these requests to a non-busy worker thread 330 from a managed pool of worker threads. Worker thread 330 is so named since it does all the work, reading, parsing and comparing the request against the rules list, and then acting on the rules that are encountered. When processing by worker thread 330 is complete, it returns information of some kind to browser 304, which may be the resource 312 requested, output of a CGI application 306, or an error message.

[0069] The threads model used for executing ADMIN server 310 is further described in copending U.S. patent applications Ser. No. 09/135,149, filed Aug. 17, 1998, entitled “SYSTEM AND METHOD FOR CONFIGURING AND ADMINISTERING MULTIPLE INSTANCES OF WEB SERVERS”, and Ser. No. 09/135,253, filed Aug. 17, 1998, entitled “SYSTEM AND METHOD FOR PORTING A MULTITHREADED PROGRAM TO A JOB MODEL”, the teachings of which are herein incorporated by this reference.

[0070] In Table 1, a further elaboration on the operation of of *ADMIN server 310 is set forth in pseudo code. In Table 1, comment lines are preceded by //.

TABLE 1
*ADMIN Server
// pseudo code for Server 310
// error handling is not shown here but is required for
// product level implementations
START TCP SERVER COMMAND 320 RECEIVED INDICATING START
*ADMIN SERVER 310 OR START TCP COMMAND RECEIVED AND
AUTOSTART=*YES
READ AND PARSE *ADMIN SERVER INSTANCE FILE 318
START MAIN *ADMIN THREAD WITH ANY OVERRIDE PARAMETERS
// main thread processing
SETUP SIGNAL HANDLERS
// useful for such things as realizing the end tcp server
// command has been issued. This way polling is avoided
// for the end command, and the main loop can do real work
READ AND PARSE CONFIGURATION FILES 314, 316
BUILD RULES LIST
// this rules list is what governs the behavior of the
// server
FOR ALL SERVER ATTRIBUTES IN CONFIGURATION FILE 314,
316
// server attributes include such things as number of worker
// threads code pages for translations, access and error
// logging if turned on
// additional listener thread 328 if running HTTPs also
SETUP APPROPRIATE ERROR, LOGGING, ALARM THREADS
SETUP WORKER THREADS 330
// if all goes well, bind to specified socket and wait
// for work
// usually 2001 for *ADMIN HTTP
// usually 2010 for *ADMIN HTTPs (secure HTTP transactions)
CONNECT TO SOCKET SPECIFIED IN CONFIG OR OVERRIDE PARMS
OR SERVICES TABLE
WAIT IN ACCEPT LOOP FOR BROWSER REQUESTS
WHEN REQUEST ARRIVES, PASS THE SOCKET DESCRIPTOR TO A
WORKER THREAD 330
BACK TO WAIT IN ACCEPT LOOP
// a worker thread that is not busy is selected from the
// pool 330 of worker threads.
// now worker thread has the socket descriptor
READ HTTP REQUEST FROM SOCKET
APPLY RULES LIST TO HTTP REQUEST
IF A MATCH OCCURS
// there may be more than one, but first match wins
PROCESS RULE WITH “THIS” HTTP REQUEST
// CASE statement as long as number of rules in rules list
// rule is applied to path part of URL
SELECT RULE
CASE: PROTECT
DETERMINE PROTECTION SETUP SUB-DIRECTIVES
APPLY SUB-DIRECTIVE POLICIES
CHECK CREDENTIALS AND AUTHENTICATE USER
IF USER IS AUTHENTICATED
CONTINUE PROCESSING THROUGH RULES LIST
ELSE, SEND BACK AUTHENTICATION FAILURE
CASE: PASS
LOCATE RESOURCE SPECIFIED IN THE PATH PART OF
THE URL, GET READY TO SEND RESOUCE
CASE: FAIL
GENERATE FORBIDDEN BY RULE MESSAGE
CASE: EXEC
LOCATE PROGRAM TO RUN (IN THE URL)
PREP ENVIRONMENT BY SETTING UP STDIN,
ENVIRONMENT VARIABLES AND STDOUT
RUN PROGRAM
WHEN PROGRAM RETURNS, DATA IS IN STDOUT
CASE: MAP
FOR MATCHED ITEM IN TEMPLATE FIELD
REPLACE MATCHED ITEM WITH REPLACEMENT
FIELD
CONTINUE PROCESSING THROUGH RULES LIST
// end of processing through rules list, resource requested
// should be buffered and present, therefore get ready to
// send it to the browser
// must be HTTP like before returning data to browser
// that includes things such as choosing correct MIME types,
// counting output bytes, time of day, server response
// headers
APPLY THE CORRECT HTTP RESPONSE HEADERS
RETURN OUTPUT TO BROWSER
CLOSE THIS CONNECTION
// note, socket options allow the application to close the
// connection without worrying about how much data was sent
// (since this is TCP)
RETURN THIS THREAD 330 TO WORKER THREAD POOL
WAIT FOR MORE WORK
// end of pseudo code for Server 310

[0071] server to receive or send information from/to the CGI programs, with STDIN to the CGI and STDOUT from the CGI.

[0072] Referring to Table 2, a sample instance file 318 is set forth. This sample instance file 318 indicates what configuration files 314, 316 are read and processed in step 324 by *ADMIN server 310. There can be other things in this instance file, and such things would be placed here when the “Instance Parameter” form 420 (FIG. 8) has been correctly filled out. The two files indicated here at lines 2 and 3 would be read and parsed by the *ADMIN server 310 in step 322. The other flag shown at line 3, -AutoStartN, indicates that this sample server 310 will not Autostart when its TCP/IP stack is invoked. (However, admin server 310 can be autostarted by changing its instance parameter values.) The -r show which configuration file members are being read by the web server for a particular instance (the read-only before the read-write). Line 4 shows that the instance is not autostarted.

TABLE 2
Instance File 318
// Sample of instance file that drives the admin server 310
-r /QSYS.LIB/QTCP.LIB/QATMHTTPI.FILE/DEFAULT.MBR
-r /QSYS.LIB/QUSRSYS.LIB/QATMHTTPA.FILE/ADMIN.MBR
-AutoStartN

[0073] Referring to Table 3, a sample configuration file is presented for controlling the operation of *ADMIN server 310. In this table, a “190 ” indicates a comment line, and these are not processed by the server. Other lines set forth the directives that get processed into “rules”. These rules are then applied on a per request basis to the path portion of the URL.

[0074] Following is a description of the functions provided by configuration file 314, including the manner in which to interpret the Enable, Protect, Map, Pass, Exec and AddType commands.

[0075] DirAccess (Table 3, line 13)

[0076] This directive specifies whether the server is to return directory listings when requested. The values on the Welcome and AlwaysWelcome directives determine when a request is interpreted as a request for a directory listing.

[0077] The default value is Off, which means that the server cannot return directory listings for any directories and subdirectories. If it is desired to control which directories and subdirectories the server can return directory listings for, use:

[0078] DirAccess Selective

[0079] If the value is changed to On, the server will return directory listings. If the value is changed to Selective, the server will return directory listings for any directory that contains a file named wwwbrws object. The contents of the wwwbrws file are not important, the server only checks for its existence. The object is a member name of an AS/400 physical file or a type of object in an integrated file system directory. For case-sensitive file systems such as /QOpenSys, the wwwbrws name is lower-case.

[0080] Examples:

[0081] DirAccess On

[0082] DirAccess Selective

[0083] Enable line 15

[0084] This directive is used to specify which HTTP methods the server is to accept. As many of the HTTP methods may be enabled as needed. For each method the server is to accept, a separate Enable directive is entered followed by the name of the method.

[0085] Example:

[0086] Enable POST

[0087] Protection Table 3 lines 21-31

[0088] This directive is used to define a protection setup within the configuration file. The protection setup is given a name and the type of protection is defined using protection subdirectives.

[0089] Note:

[0090] In the configuration file, Protection directives must be placed before any DefProt.or Protect directives that point to them.

[0091] The format of the directive is:

[0092] Protection label-name {

[0093] subdirective value

[0094] subdirective value

[0095] •

[0096] •

[0097] •

[0098] }

[0099] where:

[0100] label-name

[0101] The name to be associated with this protection setup. The name can then be used by subsequent DefProt and Protect directives to point to this protection setup.

[0102] subdirective value

[0103] A protection subdirective and its value is placed on each line between the left brace and the right brace. No comment lines may appear between the braces.

[0104] See “Protection Subdirectives” for descriptions of the protection subdirectives.

[0105] Example:

[0106] Protection NAME-ME {

[0107] AuthType Basic

[0108] ServerID restricted

[0109] PasswdFile QUSRSYS/WWW/PASSWORD

[0110] GroupFile/WWW/group.grp

[0111] GetMask groupname

[0112] Protection Subdirectives

[0113] Following are descriptions of each of the protection subdirectives that can be used in a protection setup. The subdirectives are in alphabetical order.

[0114] Protection setups are within the configuration file as part of DefProt, Protect, or Protection directives.

[0115] A Mask, GetMask, or PostMask subdirective must be specified in the protection setup.

[0116] See “Protection example” and the previous descriptions of the DefProt, Protect, and Protection directives for examples of using protection setups.

[0117] ACLOverride

[0118] Specifies that ACL files override protection setups.l.

[0119] This subdirective is used with a value of On if Access Control List files (ACL) is to override the masks specified in the protection setup. If a directory being protected by the protection setup has an ACL file, the mask subdirectives in the protection setup are ignored. (The mask subdirectives are GetMask, Mask, and PostMask.)

[0120] See “Using Access Control List (ACL) files” for more information on ACL files.

[0121] Example:

[0122] ACLOverride On

[0123] AuthType

[0124] Specifies authentication type.

[0125] This subdirective is used to limit access based on user names and passwords. The type of authentication to use when the client sends a password to the server is specified. With basic authentication (AuthType Basic), passwords are sent to the server as plain text. They are encoded, but not encrypted. Only basic authentication is supported.

[0126] Example:

[0127] AuthType Basic

[0128] GetMask

[0129] Specifies the user names, groups, and addresses allowed to get files.

[0130] This subdirective is used to specify user names, groups, and address templates authorized to make GET requests to a protected directory. The special value all@(*) will allow all requesters access. See “Rules for specifying user names, group names, and address templates”.

[0131] Example:

[0132] GetMask authors,(niceguy,goodie)@96.96.3.1,128.141.*.*

[0133] GroupFile

[0134] Specifies the location of the associated group file.

[0135] This subdirective is used to specify the path and file name of the server group file that this protection setup is to use. The groups defined within the server group file can then be used by:

[0136] 1. Any mask subdirectives that are part of the protection setup. (The mask subdirectives are GetMask, Mask, and PostMask.)

[0137] 2. Any ACL file on a directory that is protected by the protection setup.

[0138] See “Using server group files” more information about server group files.

[0139] Example:

[0140] GroupFile /docs/etc/WWW/restrict.grp

[0141] Mask

[0142] Specifies the user names, groups, and addresses allowed to make HTTP requests.

[0143] This subdirective is used to specify user names, groups, and address templates authorized to make HTTP requests not covered by other mask subdirectives. The special value all@(*) will allow all requesters access. See “Rules for specifying user names, group names, and address templates”. See “Methods—Set method acceptance” for descriptions of the HTTP methods supported by the server.

[0144] Note:

[0145] Masks are case sensitive. The following is an example of how Mask protection is issued on a user ID:

[0146] Example:

[0147] MASK WEBADM, webadm

[0148] PasswdFile

[0149] Specifies the location of the associated validation list.

[0150] This subdirective is used when limiting access based on user names and passwords. The PasswdFile directive may be issued by one of the following methods:

[0151] 1. Specify the path name of the validation list that this protection setup is to use:

[0152] libname/validation_list_name

[0153] 2. Specify %%SYSTEM%% to indicate that the AS/400 user profiles are to be used to validate user names and passwords.

[0154] Examples:

[0155] PasswdFile %%SYSTEM%%

[0156] PasswdFile QUSRSYS/HEROES

[0157] In the above example, note that %%SYSTEM%% lets the server know that password verification is done with an AS/400 user profile.

[0158] PostMask

[0159] Specifies the user names, groups, and addresses allowed to post files.

[0160] For a secure server, this subdirective is used to specify users, groups, and address templates authorized to make POST requests to a protected directory. The special value all@(*) will allow all requesters access. See “Rules for specifying user names, group names, and address templates”.

[0161] Example:

[0162] PostMask Anyone@9.136.*

[0163] ServerID

[0164] Specifies a name to associate with the validation list.

[0165] This subdirective is used when limiting access based on user names and passwords. A name to associate with the validation list being used is specified. The name does not need to be a real machine name.

[0166] The name is used as an identifier to the requester. Since different protection setups can use different validation lists, having a name associated with the protection setup can help the client decide which password to send. This name may be displayed when prompting for a user name and password.

[0167] Example:

[0168] ServerID restricted

[0169] UserID

[0170] Specifies the Access Control user ID that the server should use.

[0171] This subdirective is used to specify the AS/400 user profile that the server switches to while completing the HTTP transaction.

[0172] %%SYSTEM%% is specified to use the profile of the server, default QTMHHTTP.

[0173] %%CLIENT%% is specified to use the user profile that was supplied when challenged for user ID and password.

[0174] The values specified here (on the UserId Protection subdirective) override the values specified on the UserId directive.

[0175] Example:

[0176] UserID WWW

[0177] Protect Table 3 line 37

[0178] This directive is used to activate protection setup rules for requests that match a template.

[0179] For protection to work properly, DefProt and Protect directives must be placed before any Pass or Exec directives in the configuration file.

[0180] The format of the directive is different depending upon whether it is to point to a label containing the protection subdirectives or to include the protection subdirectives as part of the Protect directive.

[0181] 1. To point to a label containing the protection subdirectives, the format is as follows:

[0182] Protect request-template [label [FOR IP-address-template]]]

[0183] 2. To include the protection subdirectives as part of the Protect directive, the format is as follows:

[0184] Protect request-template [IP-address-template]] {

[0185] subdirective value

[0186] subdirective value

[0187] •

[0188] •

[0189] •

[0190] }

[0191] where:

[0192] request-template

[0193] A template for requests for which protection is to be activated. The server compares incoming client requests to the template and activates protection if there is a match.

[0194] label

[0195] This parameter is used to identify the protection setup containing the protection subdirectives to activate for requests that match request-template.

[0196] This parameter is optional. If it is omitted, the protection setup is defined by the most recent DefProt directive that contains a matching template.

[0197] Protection setup is defined with protection subdirectives. See “Protection Subdirectives” for descriptions of the protection subdirectives.

[0198] A protection setup label name that matches a name defined earlier on a Protection directive. The Protection directive contains the protection subdirectives.

[0199] subdirective value

[0200] A parameter used to include the protection subdirectives as part of the Protect directive. The left brace character must be the last character on the same line as the Protect directive. Each subdirective follows on its own line. The right brace character must be on its own line following the last subdirective line.

[0201] No comment lines may be placed between the braces.

[0202] See “Protection Subdirectives” for descriptions of the protection subdirectives.

[0203] FOR IP-address-template

[0204] If the server has multiple connections, this parameter can be used to specify an address template. The server uses the directive only for requests that come to the server on a connection with an address matching the template. It is the address of the server's connection that is compared to the template, not the address of the requesting client.

[0205] A complete IP address may be specified (for example, 204.146.167.72) Or, an asterisk can be used as a wildcard character to specify a template (for example, 9.99.*).

[0206] This parameter is optional. Without this parameter, the server uses the directive for all requests regardless of the connection the requests come in on.

[0207] To use this parameter, the label or subdirective value parameters must also be used.

[0208] Examples:

[0209] UserID ANYBODY

[0210] Protection DEF-PROT

[0211] UserID BUSYBODY

[0212] AuthType Basic

[0213] ServerID restricted

[0214] PasswdFile QUSRSYS1/WWW/restrict

[0215] GroupFile /docs/WWW/restrict.grp GetMask authors }

[0216] Protect /secret/business/* DEF-PROT

[0217] Protect /topsecret/* {

[0218] AuthType Basic

[0219] ServerID restricted

[0220] PasswdFile QUSRSYS/TOPBRASS

[0221] GroupFile /docs/WWW/restrict.grp

[0222] GetMask topbrass

[0223] }

[0224] Pass /secret/scoop/* /WWW/restricted/*

[0225] Pass /secret/business/* /WWW/confidential/*

[0226] Pass /topsecret/* /WWW/topsecret/*

[0227] In the above example, the server would activate protection as follows:

[0228] 1. Since the Protect directive does not specify a protection setup, the protection setup on the previously matching DefProt directive is used. Also, the server changes to the user profile of webname as defined on the DefProt directive.

[0229] 2. Requests beginning with /secret/business/ activate protection. The protection setup is defined on the Protection directive that has a label of DEF-PROT. Also, the server changes to the user profile of busybody as defined in the DEF-PROT protection setup.

[0230] 3. Requests beginning with /topsecret/ activate protection. The protection setup is included directly on the Protect directive. The user profile defaults to ANYBODY. (ANYBODY comes from the UserId directive at the beginning of the example.)

[0231] Note: The user profile ANYBODY must exist and the server much have authority to use it.

[0232] Examples:

[0233] Protect /secret/* CustomerA-PROT webname 204.146.167.72

[0234] Protect /secret/* CustomerB-PROT webname 9.67.*

[0235] Protect /topsecret/* webname 204.146.167.72 {

[0236] AuthType Basic

[0237] ServerID restricted

[0238] PasswdFile QUSRSYS/WWW/CUSTOMERA

[0239] GroupFile /docs/WWW/customer-A.grp

[0240] GetMask A-brass

[0241] }

[0242] Protect /topsecret/* webname 9.67.*

[0243] AuthType Basic

[0244] ServerID restricted

[0245] PasswdFile QUSRSYS/WWW/CUSTOMERB

[0246] GroupFile /docs/WWW/customer-B.grp

[0247] GetMask B-brass

[0248] }

[0249] The above examples use the optional IP address template parameter. If the server receives requests that begin with /secret/ or /topsecret/, it activates a different protection setup for the request based on the IP address of the connection the request comes in on.

[0250] For /secret/ requests coming in on 204.146.167.72, the server activates the protection setup defined on a Protection directive with a label of CustomerA-PROT. For /topsecret/ requests coming in on 204.146.167.72, the server activates the protection setup defined inline on the first Protect directive for /topsecret/.

[0251] For /secret/ requests coming in on any connection with an address beginning 9.67, the server activates the protection setup defined on a Protection directive with a label of CustomerB-PROT. For /topsecret/ requests coming in on any connection with an address beginning 9.67, the server activates the protection setup defined inline on the second

[0252] Protect directive for /topsecret/.

[0253] Map Table 3 line 49

[0254] This directive is used to specify a template for requests change to a new request string. After the server changes the request, it takes the new request string and compares it to the request templates on subsequent directives.

[0255] The format of the directive is:

[0256] Map request-template new-request [IP-address-template]

[0257] where:

[0258] request-template

[0259] A template for requests that the server is to change and then continue comparing the new request string to other templates.

[0260] An asterisk may be used as a wildcard in the template.

[0261] new-request

[0262] The new request string the server is to continue to compare to the request templates on subsequent directives. new-request may contain a wildcard if the request-template has one. The part of the request that matches the request-template wildcard is inserted in place of the wildcard in new-request.

[0263] IP-address-template

[0264] If the server has multiple connections, this parameter can be used to specify an address template. The server uses the directive only for requests that come to the server on a connection with an address matching the template. It is the address of the server's connection that is compared to the template, not the address of the requesting client.

[0265] A complete IP address may be specified (for example, 204.146.167.72). Or, an asterisk may be used as a wildcard character and a template specified (for example, 9.99.*).

[0266] This parameter is optional. Without this parameter, the server uses the directive for all requests regardless of the connection the requests come in on.

[0267] Examples:

[0268] Example for a Map request with /cgi-bin/ as a PGM object:

[0269] Map /cgi-bin/* /cgi-bin/*.pgm

[0270] Exec /cgi-bin/*.pgm /qsys.lib/cgilib.lib/*

[0271] In the above example, the server would take any requests starting with /cgi-bin/ and change the /cgi-bin/ portion of the request to /cgi-bin/*.pgm. Anything that followed /cgi-bin/ on the original request would also be included in the new request string. So /cgi-bin/whatsup/ would change to /cgi-bin/whatsup.pgm.

[0272] The Exec directive would change the /cgi-bin/whatsup.pgm to /qsys.lib/cgilib.lib/*. This change allows the Internet Connection Secure Server to execute the program cgipgm in library cgilib. The server would take the new request string and continue to compare it to request templates on subsequent directives.

[0273] Map /stuff/* /customerA/good/stuff/* 204.146.167.72

[0274] Map /stuff/* /customerB/good/stuff/* 9.99.*

[0275] The above examples use the optional IP address template parameter. If the server receives requests that begin with /stuff/, it changes the request to a different request string based on the IP address of the connection the request comes in on. For requests coming in on 204.146.167.72 the server changes the /stuff/ portion of the request to /customerA/good/stuff/. For requests coming in on any connection with an address beginning 9.99, the server changes the /stuff/ portion of the request to /customerB/good/stuff/.

[0276] Pass Table 3 line 76

[0277] This directive is used to specify a template for requests to be accepted and responded to with a document from the server. Once a request matches a template on a Pass directive, the request is not compared to request templates on any subsequent directives.

[0278] The format of the directive is:

[0279] Pass request-template [file-path IP-address-template]]

[0280] where:

[0281] request-template

[0282] A template for requests the server is to accept and respond to with a document from the server.

[0283] An asterisk can be used as a wildcard in the template.

[0284] file-path

[0285] The path to the file that contains the document the server is to return. file-path may contain a wildcard if the request-template has one. The part of the request that matches the request-template wildcard is inserted in place of the wildcard in file-path.

[0286] This parameter is optional. If a path is not specified, the request itself is used as the path.

[0287] IP-address-template

[0288] If the server has multiple connections, this parameter can be used to specify an address template. The server uses the directive only for requests that come to the server on a connection with an address matching the template. It is the address of the server's connection that is compared to the template, not the address of the requesting client.

[0289] A complete IP address may be specified (for example, 204.146.167.72). Or, an asterisk can be used as a wildcard character and a template specified (for example, 9.99.*).

[0290] This parameter is optional. To use this parameter, the file-path parameter must also be used. Without the IP-address-template parameter, the server uses the directive for all requests regardless of the connection the requests come in on.

[0291] Examples:

[0292] QDLS: Pass /doc/* /QDLS/WEBTEST/*.HTM

[0293] Root: Pass /root/* /WEBSAMP/*.html

[0294] QOpenSys: Pass /x/* /QOpenSys/WEBSAMP/*.html

[0295] QSYS: Pass /lib/*

[0296] /QSYS.LIB/WEBSAMP.LIB/HTMLDOC.FILE/*.MBR

[0297] Specifying Pass with /* as a template and no replacement string allows the server to serve any AS/400 file that QTMHHTTP user profile has read access to, with a request that specifies the AS/400 real document name; for example, /QSYS.LIB/PERSONAL.LIB/DATA.FILE/PAY.MBR. A Pass directive with /* as a template can be used to refer to a replacement string that would serve an AS/400 document; for example, Pass /* /www/webdata/web.html. This would be used after all other Map, Pass, Exec, and Redirect directives to prevent anyone from getting an Error 403 “Forbidden by rule”.

[0298] In the above example for the QDLS file system, the server would respond to a request starting /doc/ with a document from /QDLS/WEBTEST/. Anything that followed /doc/ would also be used to identify the document. So the server would respond to the request /doc/test/test1/doctest.html with the document in file /QDLS/WEBTEST/test/test1/doctest.html. Pass /gooddoc/* In the above example, the server would respond to a request starting with /gooddoc/ with a document from /gooddoc. So the server would respond to the request /gooddoc/volume1/issue2/newsletter4.html with the document in file /gooddoc/volume1/issue2/newsletter4.html.

[0299] Pass /parts/* /customerA/catalog/* 204.146.167.72

[0300] Pass /parts/* /customerB/catalog/* 9.99.*

[0301] The above examples use the optional IP address template parameter. If the server receives requests that begin with /parts/, it returns a file from a different directory based on the IP address of the connection on which the request is received. For requests coming in on 204.146.167.72 the server returns a file from /customerA/catalog/. For requests coming in on any connection with an address beginning 9.99, the server returns a file from /customerB/catalog/.

[0302] Exec Table 3 line 126

[0303] This directive is used to specify a template for requests to be accept and responded to by running a CGI program. Once a request matches a template on an Exec directive, the request is not compared to request templates on any subsequent directives.

[0304] The format of the directive is:

[0305] Exec request-template program-path [IP-address-template]

[0306] where:

[0307] request-template

[0308] A template for requests that server is to accept and respond to by running a CGI program.

[0309] An asterisk must be used as a wildcard in the program-path. The part of the request that matches the request-template wildcard must begin with the name of the file that contains the CGI program. The request-template is case sensitive, but the replacement string is only case sensitive when it refers to a case sensitive file system.

[0310] Example:

[0311] Map /cgi-bin/* /cgi-bin/*.pgm

[0312] Exec /cgi-bin/* /qsys.lib/cgilib.lib/*

[0313] This example substitutes the value after /cgi-bin/ as the name of the program. The Exec directive identifies the library where the CGI program specified in /cgi-bin/ is stored. The Exec directive changes the directive to the cgilib library.

[0314] program-path

[0315] The path to the file that contains the CGI program that the server is to execute for the request.

[0316] CGI programs can be run from the QSYS file system, only.

[0317] program-path must also contain a wildcard. The wildcard is replaced with the name of the file that contains the CGI program. The request can also contain additional data that is passed to the CGI program in the PATH_INFO environment variable. The additional data follows the first slash character that comes after the CGI program file name on the request. The data is passed according to CGI specifications.

[0318] IP-address-template

[0319] If the server has multiple connections, this parameter is used to specify an address template. The server uses the directive only for requests that come to the server on a connection with an address matching the template. It is the address of the server's connection that is compared to the template, not the address of the requesting client.

[0320] A complete IP address may be specified (for example, 204.146.167.72). Or, an asterisk may be used as a wildcard character and a template specified (for example, 9.99.*).

[0321] This parameter is optional. Without this parameter, the server uses the directive for all requests regardless of the connection the requests come in on.

[0322] Example

[0323] Map /cgi-bin/* /cgi-bin/*.pgm

[0324] Exec /cgi-bin/* /QSYS.LIB/CGIBIN.LIB/*

[0325] In the above example, the server expects to find the CGI program in library CGIBIN. In this case, the request for http://hostname/cgi-bin/mycgi causes the server to attempt to run the program named MYCGI, in library CGIBIN. The Map directive adds the .pgm to the program name so .pgm does not have to be specified on the URL request. The request arrives at the server as:

[0326] /cgi-bin/mycgi—The request arrives.

[0327] /cgi-bin/mycgi.pgm—The Map directive adds the .pgm.

[0328] /QSYS.LIB/CGIBIN.LIB/*—The request changes to identify the path to the program

[0329] (As/400 library.)

[0330] AddType Table 3 line 132

[0331] This directive is used to bind files with a particular extension to a MIME type/subtype. Multiple occurrences of this directive may be used in the configuration file. The format of the directive is:

[0332] AddType extension type/subtype encoding [quality]

[0333] where:

[0334] extension

[0335] The file extension pattern. The wildcard character (*) may be used only on the-following two special extension patterns:

[0336] *.*

[0337] Matches all file names that contain a dot character (.) and have not been matched by other rules

[0338] *

[0339] Matches all file names that do not contain a dot character (.) and have not been matched by other rules

[0340] type/subtype

[0341] The MIME type and subtype to bind to files that match the corresponding extension pattern.

[0342] encoding

[0343] The MIME content encoding to which the data has been converted:

[0344] 7 bit

[0345] Data is all represented as short (less than 1000 characters) lines of US-ASCII data. Source code or plain text files usually fall into this category. Exceptions would be files containing line-drawing characters or accented characters.

[0346] 8 bit

[0347] Data is represented as short lines, but may contain characters with the high bit set (for example, line-drawing characters or accented characters). PostScript files and text files from European sites usually fall into this category.

[0348] binary

[0349] This encoding can be used for all data types. Data may contain not only non-ASCII characters, but also long (greater than 1000 characters) lines. Almost every file of type image/*, audio/*, and video/* falls into this category, as do binary data files of type application/*.

[0350] quality

[0351] An optional indicator of relative value (on a scale of 0.0 to 1.0) for the content type. The quality value is used if multiple representations of a file are matched by a request. The server selects the file that is associated with the highest quality value. For example, if the file internet.ps is requested, and the server has the following AddType directives:

[0352] AddType ps application/postscript 8bit 1.0

[0353] AddType *.* application/binary binary 0.3

[0354] the server would use the application/postscript line because its quality number is higher.

[0355] Example:

[0356] AddType bin application/octet-stream binary 0.8

TABLE 3
Configuration File 314
# start sample of configuration file that drives #ADMIN #
# server 310 #
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #
# HTTP Administration server configuration #
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #
# HostName your.full.host.name #
# The default ports for the adminstration server are set #
# in the services table. #
# #
DirAccess Off
# #
# ENABLE start #
Enable POST
Enable GET
Enable HEAD
# ENABLE end #
# #
# PROTECTION start - Force authentication and treat as #
# AS/400 *USRPRF #
Protection IBMDFTP  {
AuthType Basic
ServerlD OS400ADM
Userid %%CLIENT%%
PasswdFile %%SYSTEM%%
GetMask All
PostMask All
}
# PROTECTION end #
# #
# PROTECT start #
Protect /QIBM/Firewall/* IBMDFTP
Protect /QIBM/NetC/* IBMDFTP
Protect / IBMDFTP
Protect /AS400TASKS IBMDFTP
Protect /QIBM/OS400/* IBMDFTP
Protect /QIBM/ICS/HTML/* IBMDFTP
Protect /QSYS.LIB/QSYSCGI.LIB/* IBMDFTP
Protect /QSYS LIB/QTCPCGI.LIB/* IBMDFTP
Protect /QIBM/ICSS/Cert/* IBMDFTP
# PROTECT end #
# #
# MAP start #
Map /QIBM/Firewall/Admin/*
/QSYS.LIB/QSYSCGI.LIB/DB2WWW.PGM/QIBM
/ProdData/HTTP/Protect/Firewall/Macro/*
Map /QIBM/NetC/Admin/QSYS.LIB/QSYSCGI.LIB
/WEBCONFIG.PGM/loadmlt
Map /QIBM/NetC/Admin/webconfig/*
/QSYS.LIB/QSYSCGI.LIB/WEBCONFIG.PGM/*
Map /QIBM/NetworkStation/Admin /QYTC/
QYTCMAIN.PGM
Map /QIBM/ICSS/Cert/Admin/*
/QSYS.LIB/QSYSCGI.LIB/DB2WWW.PGM
/QIBM/ProdData/HTTP/Protect/ICSS/Cert/Macro/*
Map /
/QSYS.LIB/QSYSCGI.LIB/DB2WWW.PGM
/QIBM/ProdData/HTTP/Protect
/OS400/Macro/qyunmain.ndm/main0
Map /AS400TASKS /QSYS.LIB/QSYSCGI.LIB/
DB2WWW.PGM
/QIBM/ProdData/HTTP/Protect/OS400/Macro
/qyunmain.ndm/main0
Map /QIBM/ICS/HTML/MRI2924/rzaglmst.html
/QSYS.LIB/QTCPCGI.LIB/QTMHFMIN.PGM/QUICKBGN
Map /QIBM/ICS/HTML/MRI2924/sample.html
/QSYS.LIB/QTCPCGI.LIB/QTMHFMIN.PGM/SAMPLE
Map /QIBM/ICS/HTML/MRI2924/icswgmst.html
/QSYS.LIB/QTCPCGI.LIB/QTMHFMIN.PGM/WEBMSTGD
# MAP end #
# #
# PASS start #
Pass /QIBM/OS400/*
/QIBM/ProdData/HTTP/Protect/OS400/HTML/*
Pass /QIBM/Firewall/*
/QIBM/ProdData/HTTP/Protect/Firewall/HTML/*
Pass /QIBM/NetC/*
/QIBM/ProdData/HTTP/Protect/NetC/*
Pass /QIBM/NetworkStation/*
/QIBM/ProdData/HTTP/Protect/NetworkStation/*
#
# Pass statements for misplaced GIF files
#
Pass /QIBM/ICS/HTML/MRI*/docmast.*
/QIBM/ProdData/HTTP/Protect/TC1/ICSS
/HTML/ICONS/docmast.gif
Pass /QIBM/ICS/HTML/MRI*/icsl0s03.*
/QIBM/ProdData/HTTP/Protect/TC1/ICSS
/HTML/ICONS/ics10s03.gif
Pass /QIBM/ICS/HTML/MRI*/icsl0s04.*
/QIBM/ProdData/HTTP/Protect/TC1/ICSS
/HTML/ICONS/icsl0s04.gif
Pass /QIBM/ICS/HTML/MRI*/icsl0s05.*
/QIBM/ProdData/HTTP/Protect/TC1/ICSS
/HTML/ICONS/icsl0s05.gif
Pass /QIBM/ICS/HTML/MRI*/icsl0s06.*
/QIBM/ProdData/HTTP/Protect/TC1/ICSS
/HTML/ICONS/icsl0s06.gif
Pass /QIBM/ICS/HTML/MRI*/icsl0s07.*
/QIBM/ProdData/HTTP/Protect/TC1/ICSS
/HTML/ICONS/icsl0s07.gif
Pass /QIBM/ICS/HTML/MRI*/icsl0s08.*
/QIBM/ProdData/HTTP/Protect/TC1/ICSS
/HTML/ICONS/icsl0s08.gif
Pass /QIBM/ICS/HTML/MRI*/icsl0sl4.*
/QIBM/ProdData/HTTP/Protect/TC1/ICSS
/HTML/ICONS/icsl0sl4.gif
Pass /QIBM/ICS/HTML/MRI*/ICFICON.*
/QIBM/ProdData/HTTP/Protect/TC1/ICSS
/HTML/ICONS/icficon.gif
#
#
Pass /QIBM/ICS/HTML/*
/QIBM/ProdData/HTTP/Protect/TC1/ICSS/HTML/*
Pass /QIBM/ProdData/HTTP/Public/*
Pass /QIBM/ICSS/Cert/Download/*
/QIEM/UserData/ICSS/Cert/Download/*
Pass /QIBM/ICSS/Cert/*
/QIBM/ProdData/HTTP/Protect/ICSS/Cert/HTML/*
# PASS end #
# #
# EXEC start #
Exec /QSYS.LIB/QSYSCGI.LIB/*
Exec /QSYS.LIB/QTCPCGI.LIB/*
Exec /QYTC/* /QSYS.LIB/QYTC.LIB/*
# EXEC end
# AddType start
AddType .cacrt application/x-x509-ca-cert 7bit 1.0
AddType .usrcrt application/x-x509-user-cert 7bit 1.0
AddType .CACRT application/x-x509-ca-cert 7bit 1.0
AddType .USRCRT application/x-x509-user-cert 7bit 1.0
# AddType end
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# end Sample of configuration file that drives the admin
# server

[0357] Referring to FIG. 6, the hierarchy of web pages for *ADMIN server 310 is set forth. Tasks page 334 is the home page for *ADMIN server 310, and provides links to first page 336 of ICS configuration and administration, first page 338 of DCM configuration and administration, and first page 340 of firewall configuration and administration. Each of pages 336, 338 and 340 provide links to additional pages 342, 344 and 346, respectively.

[0358] Referring to FIG. 7, a specific example 350 of task page 334 is shown. Task page 334 includes buttons for accessing additional pages, including button 352 which when activated will bring up an Internet connection server for configuring an HTTP server and SSL; button 354 which when activated will bring up a page for setting up and monitoring an Internet firewall; button 356 which when activated will bring up a page for configuring a net commerce server; and button 358 which when activated will bring up a page for creating, distributing and managing digital certificates.

[0359] The purpose of tasks page 350 is to provide a single URL or collection point for all those applications or system components that use the web browser for configuration and administration. As shown here, four applications 352, 354, 356 and 358 appear on tasks page 350.

[0360] Referring to Table 4, an HTML representation of a specific example of an AS/400 TASKS page 350 is set forth.

TABLE 4
Tasks Page 150 (HTML)
<HTML>
<HEAD>
<TITLE>AS/400 Tasks</TITLE>
<SCRIPT LANGUAGE=″JavaScript″>
<!--
function showHelpFunction( ) {
window.open (″/QSYS.LIB/QSYSCGI.LIB/DB2WWW.PGM/QIBM/
ProdData/HTTP/Protect/OS400/Macro/qyunmain.ndm/help041 ,″″,
″width=600,height=400,menubar=yes,scrollbars=yes,resizable=
yes,status″) }
/ /-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR=″#FFFFFF″>
<CENTER>
<TABLE WIDTH=80%>
<TR>
<TD>
<FONT SIZE=5>
<STRONG>
<IMG SRC=″/QIBM/OS400/Icons/ibmlogo.gif″  ALIGN=LEFT
ALT=″IBM″>
</STRONG>
</FONT>
</td>
<TD rowspan=2>
<CENTER>
<FONT SIZE=6>
<STRONG>AS/400 Tasks
</STRONG>
</FONT>
</CENTER>
</TD>
<TD ALTGN=CENTER>
<IMG SRC=″/QIBM/OS400/Icons/as400.gif″ ALT=″″>
</TD>
</TR>
<TR>
<td>
<FONT Size=1>(C) IBM Corporation 1997
</FONT>
</TD>
<td>
<center>
<FONT Size=2>RS008.ENDICOTT.IBM.COM
</FONT>
</center>
</td>
<TR>
<TD colspan=3>
<HR size=l>
</td>
</TR>
<TR>
<td colspan=3>
<P>
<BR>
<CENTER>
<TABLE>
<TR>
<TD>
<A HREF=″/QSYS.LIB/QTCPCGI.LIB/QTMHICFP.PGM″>
<IMG SRC=″/QIBM/ICS/HTML/ICONS/anchgrap.gif″ border=″0″
<ALT=″*″
</A>
</TD>
<TD>
<A HREF=″/QSYS.LIB/QTCPCGI.LIB/QTMHICFP.PGM″>
<STRONG>Internet Connection Server for AS/400
</STRONG>
</A>
<BR>
<FONT STZE=2>Configure the AS/400 HTTP Server and SSL
</FONT>
</TD>
</TR>
<TR>
<TD>
<A HREF=″/QIBM/Firewall/Adntin/qisafwl.ndm/main0″>
<IMG SRC=″/QIBM/Firewall/Icons/qisafwl.gif″border=″0″
ALT=″* ″>
</A>
</TD>
<TD>
<A HREF=″/QIBM/Firewall/Admin/qisafwl.ndm/main0″>
<STRONG>IBM Firewall for AS/400
</STRONG>
</A>
<BR>
<FONT SIZE=2>Set up and monitor an Internet Firewall
</FONT>
</TD>
</TR>
<TR>
<TD>
<A HREF=″/QIBM/NetC/Admin″>
<IMG SRC=″/QIBM/NetC/Server/Icons/netcomm.gif″border=″0″
ALT=″*″>
</A>
</TD>
<TD>
<A HREF=″/QIBM/NetC/Admin″>
<STRONG>IBM Net.Commerce for AS/400
</STRONG>
</A>
<BR>
<FONT STZE=2>Configure the Net.Commerce Server
</FONT>
</TD>
</TR>
<TR>
<TD>
<A HREF=″/QIBM/ICSS/Cert/Admin/qycucm1.ndm/main0″>
<IMG SRC=″/QIBM/ICSS/Cert/Icons/qycucm1.gif″ border=″0″
ALT=″*″>
</A>
</TD>
<TD>
<A HREF=″/QIBM/ICSS/Cert/Admin/qycucm1.ndm/main0″>
<STRONG>Digital Certificate Manager
</STRONG>
</A>
<BR>
<FONT SIZE=2>Create, distribute, and manage Digital
Certificates
</FONT>
</TD>
</TR>
</TABLE>
</CENTER>
<P><BR>
</td>
</TR>
<TR>
<td>
<A
href=″http: //www.as400.ibm.com/anchor/MRI2924/anchhome.htm″>
<font size−″−1″>Related task information
</font>
</a>
</td>
<td>
</td>
<td>
<center>
<a href=″Javascript: showHelpFunction ( ) ″>
<img src=″/QIBM/OS400/Icons/help.gif″ border=″0″ alt=″″>
<BR>Help
</a>
<BR>
<font size=″−2″>(Requires JavaScript)
</font>
</center>
</td>
</TR>
</TABLE>
</center>
</BODY>
</HTML>

[0361] Referring to FIG. 8, a sample representation of first page 360 of ICS configuration and administration 336 is shown. This is brought up at browser 304 by selecting the Internet Connection Server for AS/400 link 352 on tasks page 350. Internet connection secure server 360 includes buttons 362 for selecting configuration and administration, 364 for selecting a sample home page, 366 for selecting Internet connection family web site, and 368 for selecting As/400 tasks.

[0362] Referring to Table 5, an HTML representation for page 360 is set forth. This first page 360 is also referred to as the front page. Tables 5-9 are created by the CGI scripts.

TABLE 5
Front Page (HTML)
##Sample HTML representation of First Page of ICS
##configuration and Administration
<html>
<head>
<title>Internet Connection Secure Server for AS/400</title>
</head>
<frameset COLS=″25, 75″>
<frame SRC=″/QIBM/ICS/HTML/MRI2924/ICSNAV.HTML″
NAME=″ICSNavFrame″>
<frameset ROWS=″78, 22″>
<frame SRC=″/QIBM/ICS/HTML/MRI2924/ICSSLOGO.HTML″
NAME=″ICSLogoFrame″>
<frame SRC=″/QIBM/ICS/HTML/MRI2924/ICSBUTN.HTML″
NAME=″ICSlButtonsFrame″>
</frameset>
</frameset>
<form NAME=″icsframe″ ACTTON=″″ METHOD=″POST″>
<center>
</form>
</center>
</body>
</html>

[0363] Referring to FIG. 9, a representation of link configuration and administration page 370 is illustrated. This is a specific example of a page selected by choosing configuration and administration button 362 from page 360 (FIG. 5). This page 370 may be used to add a new ICS server instance, or manage an existing one. To add a new server instance, an instance name is entered in field 386 and add button 388 activated. To manage an existing server instance, the server is chosen by activating ADMIN radio button 372 or DEFAULT radio button 374, and the action then selected and initiated by activating change button 376, delete button 378, start button 380, stop button 382, or restart button 384. The Delete, Start, Stop and Restart functions perform that action and indicate back the results. Selecting change button 376 brings up panel 400 (FIG. 10). The global attribute values may be changed by selecting field 390.

[0364] Referring to Table 6, the HTML code used to generate page 370 is set forth.

TABLE 6
General Configuration and Administration (HTML)
// Sample HTML representation of ″Configuration and
// Administration″
<html>
<head>
<title>General Configuration and Administration</title>
</head>
<img src=″/QIBM/ICS/HTML/ICONS/skycfg2.gif″ align=″middle″
<ALT=″″
<strong>Configuration and Administration
</strong>
<p><hr>
<body>
<br>
<hl>General Configuration and Administration</hl>
<hr>Choose an existing server instance and an action to
perform on it.
<br>
<form ACTION=″/QSYS.LIB/QTCPCGI.LIB/QTMHFMOU.PGM/
instact″METHOD=″POST″>
<INPUT TYPE=RADIO NAME=″INSTANCE″ VALUE=
″ADMIN″>ADMIN
<BR>
<INPUT TYPE=RADIO NAME=″INSTANCE″ VALUE=
″DEFAULT″>DEFAULT
<BR>
<input type=″submit″ name=″pushbutton″ value=″Change″>
<input type=″submit″ name=″pushbutton″ value=″Delete″>
<input type=″submit″ name=″pushbutton″ value=″Start″>
<input type=″submit″ name=″pushbutton″ value=″Stop″>
<input type=″submit″ name=″pushbutton″ value=″Restart″>
</form>
<hr>To generate a new server instance, specify an instance
name and select the ″Add″ button.
<br>
<form ACTION=″/QSYS.LIB/QTCPCGI.LIB/QTMHFMOU.PGM/
instact″METHOD=″POST″>
Instance name <input TYPE=″text″ NAME=″instance″ SIZE=10
MAXLENGTH=10> <input type=″submit″ name=″pushbutton″
value=″Add″>
</form>
<hr>Change the
<aHREF=″/QSYS.LIB/QTCPCGI.LIB/QTMHFMIN.PGM/glblattr″>
Global Attribute Values</a>.
<pre>
<hr>
<a href=″/QSYS.LIB/QTCPCGI.LIB/QTMHICFP.PGM″><img
align=middle src=″/QIBM/ICS/HTML/ICONS/go2first.gif″
alt=″Front Page |41 ></a>  <a
href=″/QIBM/ICS/HTML/MRI2924/HLPAS4IM.HTML″><img
align=middle src=″/QIBM/ICS/HTML/ICONS/skyhe1p.gif″
alt=″Help″></a>
</pre>
</body>
</html>

[0365] Referring to FIG. 10, a sample representation page 400, the link “CHANGE”, displayed in response to activating change button 376 in panel 370, is shown. In this example, on page 370 (FIG. 9), server instance “TEAM42” would have been previously created added through instance name field 386 and button 388. Returning to page 370, it would then show up in the list of instances, and would be selected for change by activating a button similar to default radio button 374 followed by change button 376 to get to page 400.

[0366] Server instance page 400 allows specification of the associated configuration file 314 used by this server instance. Radio buttons 406, 408 and 410 are selected to use an existing configuration 402, to create a new configuration or associate a different configuration with this instance, respectively. There are also links 416 and 418 to configuration and administration forms 460 (FIG. 12), and instance parameters forms 420 (FIG. 11), respectively.

[0367] Referring to Table 7, the HTML for generating panel 400 responsive to link CHANGE 376 is set forth.

TABLE 7
Link CHANGE (HTML)
// Sample HTML representation of link ″CHANGE″
<html>
<head>
<title>Server Instance ″DEFAULT ″</title>
</head>
<img src=″/QIBM/ICS/HTML/ICONS/skycfg2.gif″ align=″middle″
alt=″″> <strong>Configuration and Administration</strong>
<p><hr>
<body>
<br>
<hl>Server Instance ″TEAM42 ″</hI>
<hr>
<form ACTION=″/QSYS.LIB/QTCPCGI.LIB/QTMHFMOU.PGM/
assccfg″
METHOD=″POST″>
<h2>Associated Configuration</h2>
This server instance uses the configuration named
<strong>CONFIG</strong>. To use a different one,
you choose the name of an existing configuration, specify
the name of a new configuration, or do both. Then, choose
the action you want to take.
<p>
<pre>
Existing configuration
<select NAME=″assccfg″> <OPTION SELECTED>CONFIG
<OPTION>CONFIG_BK <OPTION>CONFIGSAVE
</select>
New configuration
<input TYPE=″text″NAME=″newcfg″ maxlength=10 SIZE=10>
</pre>
<input TYPE=RADIO NANE=″action″ VALUE=″1″ Checked>
Use existing configuration <br>
<input TYPE=RADIO NAME=″action″ VALUE=″2″>
Create new configuration <br>
<input TYPE=RADIO NNAE=″action″ VALUE=″3″>
Create new configuration based on existing one
<pre>
<input type=″submit″ name=″pushbutton″ value=″Apply″>
<input name=″pushbutton″ type=″reset″ value=″Reset″>
</pre>
<hr>
<a HREF=″/QSYS.LIB/QTCPCGI.LIB/QTMHFMIN.PGM/
cfgact=CONFIG
″>
<h2>Configuration and Administration Forms</h2>
</a>
Change the configuration named
<strong>CONFIG   </strong>.
<hr>
<a HREF=″/QSYS.LIB/QTCPCGI.LIB/QTMHFMIN.PGM/
instparm=DEFAULT
″>
<h2>Instance Parameters</h2>
</a>
Specify parameter values to be used by server instance
<strong>DEFAULT   </strong>.
<INPUT TYPE=HIDDEN NAME=″INSTANCE″ VALUE=
″DEFAULT   ″>
<pre>
<hr>
<a href=″/QSYS.LIB/QTCPCGI.LIB/QTMHTCFP.PGM″><img
align=middle src=″/QIBM/ICS/HTML/ICONS/go2first.gif″
alt=″Front Page |″></a>  <a
href=″/QIBM/ICS/HTML/MRI2924/HLPAS4CF.HTML″><img
align=middle src=″/QIBM/ICS/HTML/ICONS/skyhelp.gif″
alt=″Help″></a>
</pre>
</form>
</body>
</html>

[0368] Referring to FIG. 11, a sample representation of link “INSTANCE PARAMETERS”, the page 420 returned upon selecting instance parameters 418 (FIG. 10), is shown. This page 420 allows specification of particular “instance” values that can override configuration directives for server 422 for those inputs 424-446 shown on the page. In this specific example, such instance values, or parameters, include autostart 424, number of server jobs minimum 426 and maximum 428, coded character set identifier 430, server mapping tables outgoing 432, 434 and incoming 436, 438, access log file name 440, error log file name 442, non-secure port 444 and secure port 446. For example, specifying a non-secure port in field 444 would override any PORT directive in configuration file 316. These attribute values reflect the contents of a member in a file that is similar to file 318, except instead of being tied to server 310, this file is tied to server 311 (it is modified by server 310, used to control the behavior of server 311). The ADMIN instance is unique in that it uses two config file members. It first reads the one from the read-only file 314, then the one from the read-write file 316.

[0369] Referring to Table 8, the HTML code for generating a panel for an instance of TEAM42, which will be like panel 420 of FIG. 11 (which is for a server instance of DEFAULT) is set forth. (In order for Table 8 to produce FIG. 11, “TEAM42” in line 12 would have to be changed to “DEFAULT”.)

TABLE 8
Instance Parameters (HTML)
// Sample HTML Representation of link ″INSTANCE PARAMETERS″
<html>
<head>
<title>Instance Parameters</title>
</head>
<img Src=″/QIBM/ICS/HTML/ICONS/SkyCfg2.gif″ align=″middle″
alt=″″> <strong>Configuration and Administration</Stroflg>
<p><hr>
<body>
<br>
<h1>Instance Parameters</h1>
Server instance: <STRONG>TEAM42</STRONG>
<hr>
<form
ACTION=″/QSYS.LIB/QTCPCGI.LIB/QTMHFMOU.PGM/instparm=
DEFAULT″
METHOD=″POST″>
Specify parameter values to be used by this server instance.
<p>
<pre>
Auto start
<select NAME=″auto″> <option> NO <OPTION> YES <OPTION
SELECTED> *GLOBAL </SELECT>
Number of server jobs:
Minimum
<input TYPE=″text″
NAME=″min″
VALUE=″*CFG″
maxlength=4
SIZE=4>
Maximum
<input TYPE=″text″
NAME=″max″
VALUE=″*CFG″
maxlength=6
SIZE=6>
Coded character set identifier
<input TYPE=text″
NAME=″ccsid″
VALUE=″*GLOBAL″
maxlength=7
SIZE=7>
Server mapping tables:
Outgoing EBCDIC/ASCII table
<input TYPE=″text″
NAME=″outtbl″
VALUE=″*GLOBAL″
maxlength=10
SIZE=10>
Library
<input TYPE=″text″
NAME=″outlib″
VALUE=″″
maxlength=10
SIZE=10>
Incoming ASCII/EBCDIC table
<input TYPE=″text″
NAME=″intbl″
VALUE=″*GLOBAL″
maxlength=10
SIZE=10>
Library
<input TYPE=″text″
NAME=″inlib″
VALUE=″″
maxlength=10
SIZE=10>
ACCESS log file name
<input TYPE=″text″
NANE=″accfil″
VALUE=″*CFG″
maxlength=512
SIZE=50>
ERROR log file name
<input TYPE=″text″
NAME=″errfil″
VALUE=″*CFG″
maxlength=512
SIZE=50>
Non-secure port
<input TYPE=″text″
NAME=″prt″
VALUE=″*CFG″
maxlength=5 SIZE=5>
Secure port
<input TYPE=″text″
NAME=″secprt″
VALUE=″*CFG″
maxlength=5
SIZE=5>
</pre>
<pre>
<input type=″submit″ name ″pushbutton″ value=″Apply″>
<input type=″reset″ name=″pushbutton″ value=″Reset″>
<hr>
<a href=″/QSYS.LIB/QTCPCGT.LIB/QTMHICFP.PGM″>
<img align=middle src=″/QIBM/ICS/HTML/ICONS/go2first.gif″
alt=″Front Page |″>
</a>
<a href=″/QIBM/ICS/HTML/MRI2924/HLPAS4IN.HTML″>
<img align=middle src=″/QIBM/ICS/HTML/ICONS/skyhelp.gif″
alt=″Help″>
</a>
</pre>
</form>
</body>
</html>

[0370] Referring to FIG. 12, a sample representation of link configuration and administration forms panel 460, such as is displayed at browser 404 in response to selection of field 416 (FIG. 10) is set forth. This server configuration TEAM42 may be customized by selecting and using one or more of forms 461. These forms include the following: basic form 462 (see form 500, FIG. 13 for a specific example) for specifying required settings; user administration forms 463 for managing user ID and passwords, including add user form 464 for adding a new user ID to a validation list and group file, delete user form 465 for deleting a user from a validation file, check user form 466 for determining if a user exists in a validation list, and change password form 467 for changing a user password in a validation list; directories and welcome page 468 for setting viewing options, including initial page 469 for specifying the welcome pages and directory lists, directory list contents 470 for specifying list columns, and readme text 471 for providing informative directory list text; logging form 472 for customizing the access log and error log, including global log file configuration settings form 473 for specifying log fomats, access log file configuration form 474 for specifying access log location, and error log file configuration form 475 for specifying error log location; access control form 476 for setting up access control for the server, including document protection form 477 for specifying file directories to protect, protection setups form 478 for specifying file protection settings, and access control lists 479 for defining user access files; security form 480 for setting up security for the server, including security configuration form 481 for defining basic parameters for security, create keys form 482 for creating keys and request certificates, receive certificate form 483 for receiving a certificate into the key ring, and key management form 484 for working with keys, root keys, and certificates; resource mapping form 485 for redirecting URLs and defining file extensions, including request routing form 486 for routing URL requests to server files, MIME encodings form 487 for defining encodings and extensions, MIME types form 488 for defining file types and extensions, and languages form 489 for associating language encodings and extensions; timeouts form 490 for closing connections automatically; methods form 491 for setting method acceptance; accessory scripts form 492 for specifying custom method scripts; and performance settings form 493 for defining performance settings, including jobs form 494 for configuring jobs.

[0371] Referring to Table 9, HTML coding for setting up configuration and administration forms panel 460 is set forth.

TABLE 9
Configuration and Administration (HTML)
// Sample representation of link ″Configuration and
// Administration Forms″
<html>
<head>
<title>Configuration and Administration Forms</title>
</head>
<body>
<img src=″/QIBM/ICS/HTML/ICONS/skycfg2.gif″ align=″middler″
alt=″″
<strong>Configuration and Administration</strong>
<p><hr>
<h1>Configuration and Administration Forms</h1>
Configuration: <strong>TEAM42</strong>
<p>
<hr>
You can customize this server configuration by modifying the
forms below:
<p>
<ul>
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/basic=CONFIG″>
Basic
</a> - Specify required settings
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/useradm=
CONFIG″>
User Administration </a>
- Manage user ID and passwords
<ul>
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
adduser=CONFIG″>
Add User </a>
- Add a new user ID to a validation list and group file
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
deluser=CONFIG″>
Delete User </a>
- Delete a user from a validation list
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
chkuser=CONFIG″>
Check User</a>
- Determine if a user exists in a validation list
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
chpasswd=CONFIG″>
Change Password</a>
- Change a user password in a validation list
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
dirappr=CONFIG″>
Directories and Welcome Page</a>
- Set viewing options
<ul>
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
initpage=CONFIG″>
Initial Page</a>
- Specify welcome pages and directory lists
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
listcnts=CONFIG″>
Directory List Contents</a>
- Specify list columns
<li>
<ahref″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
dirreadm=CONFIG″>
Readme Text</a>
- Provide informative directory list text
</ul>
<li><ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHLRIN.PGM/logging=
CONFIG ″>
Logging</ a>
- Customize access log and error log
<ul>
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHLRIN.PGM/
logfiles=CONFIG″>
Global Log File Configuration Settings</a>
- Specify log formats
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHLRIN.PGM/
accconf=CONFIG″>
Access Log File Configuration</a>
- Specify access log location
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHLRIN.PGM/
errconf=CONFIG″>
Error Log File Configuration</a>
- Specify error log location
</ul>
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
access=CONFIG″>
Access Control</a>
- Set up access control for the Server:
<ul>
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
docautos=CONFIG″>
Document Protection</a>
- Specify file directories to protect
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
prtclist=CONFIG″>
Protection Setups</a>
- Specify file protection settings
<li>
<ahref=″/QSYS.LIB/QTCPCGT.LIB/QTMHCFIN.PGM/
acldir=CONFIG″>
Access Control Lists</a>
- Define user access files
</ul>
<li>
<ahref″/QSYS.LIB/QTCPCGI.LIB/QTMHSCIN.PGM/
security=CONFIG″>
Security</a>
- Set up security for the server:
<ul>
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHSCIN.PGM/
secconf=CONFIG″>
Security Configuration</a>
- Define basic parameters for security
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHSCIN.PGM/key=CONFIG″>
Create <Keys</a>
- Create keys and request certificates
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHSCIN.PGM/
reccert=CONFIG″>
Receive Certificate</a>
- Receive a certificate into the key ring
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHSCIN.PGM/
pwprompt=CONFIG″>
Key Management</a>
- Work with keys, root keys, and certificates
</ul>
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
resmap=CONFIG″>
Resource Mapping</a>
- Redirect URLs and define file extensions
<ul>
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
mpfrule=CONFIG″>
Request Routing</a>
- Route URL requests to server files
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
addencod=CONFIG″>
MIME Encodings</a>
- Define encodings and extensions
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
addtype=CONFIG″>
MIME Types</a>
- Define file types and extensions
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
addlang=CONFIG″>
Languages</a>
- Associate language encodings and extensions
</ul>
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
timeout=CONFIG″>
TimeOuts</a>
- Close connections automatically
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
methenab=CONFIG″>
Methods</a>
- Set method acceptance
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
accscr=CONFIG″>
Accessory Scripts</a>
- Specify custom method scripts
<li>Performance Settings</a> - Define performance settings:
<ul>
<li>
<ahref=″/QSYS.LIB/QTCPCGI.LIB/QTMHCFIN.PGM/
performa=CONFIG″>
Jobs</a>
- Configure jobs
</ul>
</ul>
<hr>
<a href=″/QSYS.LIB/QTCPCGI.LIB/QTMHICFP.PGM″>
<img src=″/QIBM/ICS/HTML/ICONS/go2first.gif″
alt=″Front Page |″></a>
<img src=″/QIBM/ICS/HTML/ICONS/greycfg.gif″
alt=″Configuration and Administration Forms
<a href=″/QIBM/ICS/HTML/MRI2924/sample.html″>
<img src=″/QIBM/ICS/HTML/ICONS/skyhome.gif″
alt=″Sample Home Page |″></a>
<a href=″http://www.ics.raleigh.ibm.com/″>
<img src=″/QIBM/ICS/HTML/ICONS/skyres.gif″
alt=″Resource List |″></a>
<a href=″/QIBM/ICS/HTML/MRI2924/rzaglmst.html″>
<img src=″/QIBM/ICS/HTML/ICONS/skydoc.gif″
alt=″Documentation″></a>
</body>
</html>

[0372] Referring further to FIGS. 1 and 2, if the auto start attribute for administration server 310 is set to *NO, this server 310 starts only upon command, such as the AS/400 STRTCPSVR(*HTTP)(*ADMIN) command. The system administrator may, however, using the browser, configure the default autostart attribute for any server instance 310, 311 to yes, and thus may configure ADMIN server instance 310 so that it will autostart.

[0373] Referring again to FIG. 3, to add a new instance of an HTTP server, the user types in an instance name 371 and selects ADD 388. The user will then be shown a confirmation page, can then return to page 400, and select 418 to get the instance parameters page.

[0374] Referring further to FIG. 9, the link “Global attribute values” 390 shows an additional page similar to that in FIG. 11 to allow modification of the default HTTP server 311 attributes 323. These default attributes are those which are modified with the CHGHTTPA command, and are shown in FIG. 15, global attribute file 532.

[0375] Referring further to FIGS. 10 and 11, a configuration for a particular instance of an HTTP server is illustrated. In such a case, the configuration name is mandatory as this is the configuration used by this instance of the HTTP server. Different instances may use the same or unique configurations. If instances share configurations, and need to co-exist, certain override parameters must be specified. For example, if a port directive is in the configuration, and two instances share that configuration, only one of the instances will start up the other instance will fail unless there is an override parameter in the appropriate PORT field.

[0376] Once “apply” 448 is chosen, messages indicate the outcome, which may be either the instance is not changed successfully or the instance is changed. “Reset” 450 resets values back to previously defined values, which may include blank fields.

[0377] Referring to FIG. 9, if the link “Global Attribute Values” 390 is selected in panel 370, a page is produced which allows setting of the values of 533, 534, 535, 536, 537, and 538 in FIG. 15.

[0378] Referring further to FIG. 10, the sample page illustrated is an indication of what is required on a configuration page. A system administrator can change attributes for this instance via link 418; designate what configuration file is used via items 402, 404, 406, 408, 410, 412, and 414; and specify configuration file values via link 416.

[0379] Referring to FIG. 13, a sample page illustrates basic panel 500. This panel 500 is displayed responsive to selection of link 462 in panel 460, FIG. 12. Instructions 502 may include a statement displayed on the browser in panel 500, such as the following:

[0380] “Specify the host name of the computer on which the server is installed, the port number on which the server listens for requests, and the directory the server uses as the root of the data hierarchy (server root). Host name should be a fully qualified name.

[0381] Default port number should be the well-known HTTP port number (80), or a port number above 1024. Port numbers less than 1024 may be reserved by other programs.”

[0382] Representative data entry fields on page 500 include host name 504, default port number 506, server root 508. Button 510 is activated to look up the host name of requesting clients, button 512 to apply, and 514 to reset.

[0383] This panel 500 is representative of the many similar panels which would be displayed by selection in panel 460 of links 463-494.

[0384] Referring to FIG. 14, a sample page illustrates the contents of confirmation panel, which is displayed back to the user at browser 304 in response to data entered via basic page 500.

[0385] Referring to FIG. 15, secure server instance management files and formats are illustrated for enabling management of multiple server instances.

[0386] Referring to FIG. 15 in connection with FIG. 2, in accordance with the preferred embodiment of the invention, one of the server instances is default server instance 311, and another is the ADMIN server 310 instance that is used for the browser interface to the configuration and administration utilities.

[0387] Multiple HTTP server instance management is handled by using instance file (*PF) 516, configuration file (*SRCPF) 526, and attribute file (*PF) 532.

[0388] Each member 515, 517, 519, 521 of instance file 516 represents a single HTTP server instance. Instance name 525 is not actually contained within each member of 516, but rather is used to determine which member within file 516 is accessed. Instance file 516 is the same as instance file 318 (FIG. 1), and file 515 is a member within file 516. A particular member 515 defines an instance. Each instance (member) 515, 517, 519, 521 contains optional attribute overrides 518, configuration file member name 522, and optional configuration directive overrides 524. The instance (member) name 525 is used to specify the server instance for configuration and administration purposes. Optional attribute overrides 518 are used to override the values in attribute file 532 for this server instance 515. Configuration file member name 522 identifies, as is represented by line 523, the configuration file member 526 from which server instance 515 reads configuration directives 530 at server startup. Optional configuration directive overrides 524 are used to override configuration directives such as port, sslport, AccessLog and ErrorLog. Each member in configuration file 526 (only one member is shown) represents a set of directives 528, 530 that can be used by server instance 515, 517, 519, 521 at startup time. In accordance with a preferred embodiment of the invention, attribute file 532 includes only one member with [fileds] fields autostart 533, minjob 534, maxjob 535, ccsid 536, out ccsid 537 and in ccsid 538. Minjob 534 and maxjob 535 attributes map to MinActiveThreads and MaxActiveThreads to enable a job structure to be implemented on a thread model, as is further described in copending patent application Ser. No. 09/135,253, filed Aug. 17, 1998 (supra).

[0389] Referring to FIGS. 16 and 17, the STRTCPSVR 540 and ENDTCPSVR 550 commands are adapted to support multiple server instances. Use of SYTRTCPSVR command 540 is an alternative to use of the browser based ADMIN server to create startup values in the instance file.

[0390] Referring to FIG. 16, the format of start TCP server command 540 is illustrated, which includes STRTCPSVR field 542, SERVER( ) field 544, RESTART field 546 and HTTPSVR( ) field 548. The start TCP/IP server command 540 is used to start the TCP/IP application servers. The syntax of STRTCPSVR statement 540 is as follows:

STRTCPSVR field 542: STRTCPSVR
SERVER() field 544: SERVER(|*ALL||*SNMP|*ROUTD|*TELNET|
*FTP|*SMTP|*LPD|*WSG|*POP|*HTTP|. . .
|)
RESTART field 546: RESTART(|*NONE|*HTTP|)
HTTPSVR() field 548: HTTPSVR(|*ALL||server-instance-name
|*ADMIN||*NONE|instance-startup-
values|)

[0391] where:

[0392] SERVER specifies the TCP/IP application servers to be started by this command.

[0393] ALL specifies that all of the TCP/IP application servers and all HTTP instances are started.

[0394] *SNMP specifies that simple network management protocol (SNMP) agent jobs are started.

[0395] *ROUTED specifies that the RouteD server is started.

[0396] *TELNET specifies that the TELNET server is started. More than one TELNET server job may be running.

[0397] *FTP specifies that file transfer protocol (FTP) servers are started based on the number of servers configured with a change FTP attributes (CHGFTPA) command. More than one FTP server job may be running.

[0398] *SMTP specifies that the simple mail transfer protocol (SMTP) client and server jobs are started.

[0399] *LPD specifies that line printer daemon (LPD) servers are started based on the number of servers configured with the change LPD attributes (CHGLPDA) command. More than one LPD servers may be running.

[0400] *WSG specifies the 5250/Hypertext markup language (HTML) workstation gateway (WSG) server is started.

[0401] *POP specifies the post office protocol (POP) version 3 servers are started based on the number of servers configured with the change POP attributes (CHGPOPA) command.

[0402] *HTTP specifies the world wide web hyptertext transfer protocol (HTTP) servers are started based on the number of servers specified in the change HTTP attributes (CHGHTTPA) command.

[0403] RESTART specifies whether to restart the selected server when the STRTCPSVR command 540 is run. The SERVER parameter 544 must be *ALL or *HTTP or this parameter is ignored. *NONE specifies that no server is to be restarted. *HTTP specifies that the HTTP server is to be restarted if already running, thus forcing the HTTP server to read in the HTTP configuration and use any configuration values or attributes that have changed since it was last started. HTTPSVR( ) specifies the HTTP server instance to be started as well as any additional startup values to be used by the HTTP server to control the server instance.

[0404] *ALL specifies that all sever instances for the HTTP server will be started.

[0405] SERVER-INSTANCE-NAME specifies the server instance will be started.

[0406] *ADMIN specifies that the administration HTTP server will be started. This administration server is an instance of the HTTP server that allows administration of system functions using a web browser.

[0407] INSTANCE-STARTUP-VALUES specifies additional startup values to be used for this server instance. The user is required to have *IOSYSCFG special authority to specify overrides. These values are used to override previously defined server startup values for the specified server instance, and are as follows:

[0408] -netcp[nnn] overrides the DefaultNetCp directive.

[0409] -fscp[nnn] overrides default DefaultFsCP directive.

[0410] -p[nnn] overrides port directive.

[0411] -sslport[nnnn] overrides SSLPort directive.

[0412] -r[configuration file] overrides configuration file for this instance of the server.

[0413] -l[log-file-name] same as “AccessLog log-file-name”

[0414] -newlog[log-file-name] same as “AccessLog log-file-name and Logformat Common”.

[0415] -ddslog[log-file-name] same as “AccessLog log-file-name and Logformat DDS”.

[0416] -errlog[logo-file-name] same as “ErrorLog log-file-name”.

[0417] -minat[nn] overrides the MinActiveThreads directive.

[0418] -maxat[nn] overrides the MaxActiveThreads directive.

[0419] INSTANCE-STARTUP-VALUES specified on the STRTCPSVR *HTTP command take precedence or can augment configuration data in instance files. Instance files take precedence over or can augment data in configuration files.

[0420] EXAMPLES:

[0421] STRTCPSVR SERVER(*ALL): starts all of the TCP/IP application servers that have been configured. If the change FTP attributes (CHGFTPA) command was previously used to configure two FTP servers, both servers are started when STRTCPSVR is issued. Where appropriate, the number of servers to start is based on the number of servers configured for the server being started. The configuration option to automaticaly start the servers (AUTOSTART) is ignored by the STRTCPSVR command 540. The AUTOSTART parameteris only used by the STRTCP command.

[0422] STRTCPSVR SERVER(*TELNET): starts the TCP/IP TELNET application server. If the TELNET server was previously started, one additional TELNET server job is started.

[0423] STRTCPSVR SERVER(*HTTP) RESTART(*HTTP): restarts the TCP/IP HTTP application server for all instances of the HTTP server. If the HTTP server was not currently running, then all defined instances of the HTTP server are started.

[0424] STARTCPSVR SERVER(*HTTP) HTTPSVR(http1): starts the TCP/IP HTTP application server instance named ‘http1’ using the startup values prevously defined for this server instance. STRTCPSVR SERVER(*HTTP) HTTPSVR(HTTP1‘-p 81 -sslport 443’): starts the TCP/IP HTTP application server instance named ‘http1’, and specifies that the server instance should listen on port 81 for unsecure requests and on port 443 for secure requests. The ports defined here override any previously defined ports used by this server instance.

[0425] Referring to FIG. 17, the format of end TCP server command 550 is illustrated, which includes ENDTCPSVR field 552, SERVER( ) field 554 and HTTPSVR( ) field 556. ENDTCPSVR command 550 is used to end the TCP/IP application server jobs that are specified in the SERVER parameter 554. If the jobs have any current active connections, these connections are ended immediately. The syntax of the ENDTCPSVR command 550 is as follows:

ENDTCPSVR field 552: ENDTCPSVR
SERVER() field 554: SERVER(|*SNMP|*ROUTED|*TELNET|
*FTP|*SMTP|*LPD|*HTTP|*WSG|
*POP|. . .|*ALL|
HTTPSVR() field 556: HTTPSVR(|*ALL|SERVER-INSTANCE-
NAME|*ADMIN|)

[0426] where:

[0427] SERVER-INSTANCE-NAME specifies the HTTP server instance to be ended.

[0428] Examples:

[0429] ENDTCPSVR SERVER(*ALL) ends all active TCP/IP application server jobs.

[0430] ENDTCPSVR SERVER(*HTTP) HTTPSVR(http1) ends the TCP/IP HTTP application server instance named ‘http1’.

[0431] In a typical startup scenario:

[0432] (1) a user initializes operation by installing several files, including default configurations for both the ADMIN HTTP server 310 and default servers 311, and issues a start TCP (STRTCP) which causes the TCP/IP stack to start, and any TCP application that has AUTOSTART=*YES starts.

[0433] (2) However, because the default attribute file 323 has AUTOSTART=*NO for HTTP servers, and there is, in the preferred embodiment, no override for the ADMIN instance (attribute file 318), the user must run an explicit command to start the ADMIN server 310. (That command is STRTCPSVR 540, infra.) This is true only initially, before the ADMIN server 310 is started for the first time. The user can change the autostart attribute in the ADMIN server's instance file via browser-based conFIG. 1f the admin server is not running, the only way to start is with STRTCPSVR, because it is the admin server that provides the browser-based config function. Other instances can then be started thru the browser (which actually does

[0434] (3) In response to the STRTCP command, because server 310 has basic authentication enabled, the user is required to enter a valid user ID and password in order to further configure the server.

[0435] (4) Once authorized, the user issues STRTCPSVR 540 or STRTCPSVR(*HTTP), or points the browser to the ADMIN server and selects “default server” and “start”. An HTTP server with a standard default configuration that serves only a “welcome.html” document is started on the standard HTTP port 80 for this host.

[0436] (5) The user then configures the server (either by the browser and selecting “which server” and “configure” or WRKHTTPCFG(*configuration)). Using either method, the user is able to (by configuration name): select a configuration file, and then change that particular configuration file.

[0437] Referring to FIG. 18, in accordance with the Internet connection secure server embodiment of the invention, a server can listen on both a secure port 204 using secure sockets layer (SSL) and a non-secure port 202 using sockets for requests coming from HTTP clients on network 200. When a listening thread 206 detects a request coming into port 202 or 204 from network 200, it passes the socket descriptor for the request off to a worker thread 212 or 214 that is waiting in a thread pool 210 of initialized threads. Worker thread 212 or 214 processes the request and completes the transaction by sending a response back to the HTTP client on network 200. Service threads 220 run in the background to handle server utility functions including alarm 222 and log writer 224.

[0438] Referring to FIG. 19 in connection with FIG. 18, as part of initialization, main thread 240 processes configuration file 244 directives. The MinActiveThreads and MaxActiveThreads directives are used to set the boundaries of the pool 206, 210, 220 of available threads that can be used by the server 190. Main program thread 240 initializes thread pool 210 and then uses a thread 202 from pool 210 to bind( ) 260 and listen( ) 262 on an IP address port 202. When server 190 is started with directives normalmode on and sslmode on there will be one thread 206, 262 listening on port 80 (the HTTP default port 202) and one thread 206, 272 listening on port 443 (the HTTPS default port 204). Hereafter, these threads may be referred to as listing threads, or parent threads. HTTP and HTTPS default ports 202, 204 can be overriden with a directives port (for (HTTP) and an sslport (for HTTPS). These threads 206 will listen on all IP addresses defined for this host unless the BindSpecific directive is in configuration file 244 and it contains a valid IP address for this host. Then threads 206 only listen on the ports for that IP address.

[0439] When a request comes in on either or both ports 202, 204, the listening thread 262, 272 does an accept 264, 274 and passes the incoming request off to a work thread 266, 276 that comes from thread pool 210. Listening thread 262, 272 then goes back to accept( ) mode 264, 274. The work thread 266, 276 processes the incoming request and sends a response to the client. When work thread 266, 276 completes its tasks it returns to pool 210 of available threads.

[0440] Two service threads 220, including log writer thread 224 and alarm thread 222, are spun off at server 190 initialization and wait in the background until their services are needed.

[0441] Log writer routine 224 is spun off in its own thread when server 190 starts. It spends most of its time sleeping, but wakes up periodically to write out to log files 226 anything that needs to be logged. It handles writing to the access and error logs.

[0442] At initialization, startup job 240, 250 opens the log files 226 that are specified in configuration directives 244 (or over-rides) and then passes the file descriptors to the log writer thread 224. As is represented by lines 234 and 236, server listening threads 206 and worker threads 210 add log data to log queue 228 for log writer thread 224 to log. When log writer thread 224 wakes up it checks queue 228 for data to be logged. When there is data to be logged, log writer thread 224 locks the queue with a mutually exclusive (mutex) lock on line 218 and, as is represented by line 238, copies the log data from queue 228 into list 216, zeros out queue 228, and then releases mutex 218. Log writer thread 224 can then log the data from list 216 without having other threads 206, 210 blocked from writing to queue 228.

[0443] Alarm thread 222 is spun off (spawned) in its own thread when server 190 starts. It spends most of its time sleeping. It wakes up periodically and checks a list of timers 232 that are associated with active work threads 210, such as 266, 268, 276, 278. When a timer 232 expires it indicates that a work thread 210 had a problem completing its task on time. When alarm thread 222 finds an expired timer the timer is removed from the list of timers 232, the outstanding function being processed is terminated, and the socket 202, 204 being used by the request is closed.

[0444] Referring to FIG. 20, in accordance with a specific embodiment of the invention, various AS/400 jobs are started to support an HTTP server 190. A main job 160 is created that will then create additional jobs SSL 180, alarm 182, log 184, and worker 178. Upon properly configuring SSL, a spawno 162 is issued to create job SSL 180 that will then listen 272 on port 204 for https requests. This job SSL 180 becomes a listening, or parent job to, for example, worker jobs 186. In addition, a number of worker jobs 186 are created (spawn 168) that are kept in a pool and at a later time are dispensed as appropriate with units of work (either requests for documents or to execute CGI programs). Finally, spawn log 166 creates log job 184 and spawn alarm 164 creates alarm job 182. USRSPC 150 is used to share global data across these jobs. USRSPC 150 is a system domain object that is uniquely named per server or worker job instance with the instance name and is located in the QHTTP library.

Advantages over the Prior Art

[0445] The advantages of the method of the preferred embodiment of this invention include the provision of an improved administration server which serves administration and configuration applications to a browser's graphical user interface.

[0446] It is a further advantage of the invention that there is provided an administration server which serves to a browser capability for administering and configuring web enabled system components.

[0447] It is a further advantage of the invention that there is provided an improved administration server which is isolated from other servers at the site.

[0448] It is a further advantage of the invention that there is provided an improved administration server which is isolated from other servers at the site such that loading of either does not adversely impact the other.

[0449] It is a further advantage of the invention that there is provided an improved administration server which enables the management of multiple copies or instances of servers.

[0450] It is a further advantage of the invention that there is provided an administration server implemented as a browser.

Alternative Embodiments

[0451] It will be appreciated that, although specific embodiments of the invention have been described herein for purposes of illustration, various modifications may be made without departing from the spirit and scope of the invention. In particular, it is within the scope of the invention to provide a memory device, such as a transmission medium, magnetic or optical tape or disc, or the like, for storing signals for controlling the operation of a computer according to the method of the invention and/or to structure its components in accordance with the system of the invention.

[0452] Accordingly, the scope of protection of this invention is limited only by the following claims and their equivalents.

Referenced by
Citing PatentFiling datePublication dateApplicantTitle
US7103648 *Nov 26, 2001Sep 5, 2006Gateway Inc.Method and system for assigning an IP address to a host based on features of the host
US7249174Apr 16, 2003Jul 24, 2007Bladelogic, Inc.Method and system for executing and undoing distributed server change operations
US7562382 *Dec 16, 2004Jul 14, 2009International Business Machines CorporationSpecializing support for a federation relationship
US7769895 *Aug 16, 2002Aug 3, 2010Corda Technologies, Inc.System and method for ensuring that a web browser displays the highest ranked image format possible for an image
US7925732 *Sep 11, 2007Apr 12, 2011Cisco Technology, Inc.Automatic hardware failure detection and recovery for distributed max sessions server
US8185819Dec 12, 2005May 22, 2012Google Inc.Module specification for a module to be incorporated into a container document
US8185830 *Jun 1, 2007May 22, 2012Google Inc.Configuring a content document for users and user groups
US8407250Jun 1, 2007Mar 26, 2013Google Inc.Distribution of content document to varying users with security customization and scalability
US8549114 *Apr 16, 2003Oct 1, 2013Bladelogic, Inc.Method and system for model-based heterogeneous server configuration management
US8621077 *Sep 21, 2001Dec 31, 2013Mcafee, Inc.Distribution of security policies for small to medium-sized organizations
US20130247128 *Sep 21, 2001Sep 19, 2013Alex J. HinchliffeDistribution of security policies for small to medium-sized organizations
Classifications
U.S. Classification709/203
International ClassificationH04L29/06, H04L29/08, H04L12/24
Cooperative ClassificationH04L67/02, H04L67/125, H04L41/0806, H04L41/06, H04L29/06, H04L41/082
European ClassificationH04L41/08A1, H04L41/08A2B, H04L29/06, H04L29/08N1, H04L29/08N11M
Legal Events
DateCodeEventDescription
Jul 13, 2010FPExpired due to failure to pay maintenance fee
Effective date: 20100521
May 21, 2010LAPSLapse for failure to pay maintenance fees
Dec 28, 2009REMIMaintenance fee reminder mailed
Sep 14, 2005FPAYFee payment
Year of fee payment: 4