Java's Web Server Jswd Profile WebServer.xml Translation Document

zhaozj2021-02-17  51

This file is the default configuration file of JSwdk Server. Below is an instructions for the JSWDK Server configuration item.

============================================================================================================================================================================================================= ======

DTD and XML of the webserver.xml file:

Element property (etc.) child elements (etc.) ======================================== ================

WebServer - a collection of web services managed by a separate HTTP Web Server instance. ID - A unique web server IDMINPORT - for administrative functions of Web Server, such as convenient execution, and port numbers, from the outside of Web Server, such as convenient execution. (Note: These management functions are currently not available, this is the next step in the development of the development) Service - a Web Service that can be managed. Service - A separate network resource that can be accessed through a fully reasonable network address. ID - a unique service ID. Port - the port number registered by Service. Hostname - host name of the host stored. INET - The IP value of the host stored by the service. DOCBASE - The relative path stored by the local file of the service master document. Workdir - Service Local work records the relative path stored. WorkDirispersistent - Indicates whether the Web Server closes the relevant work file to the specified working directory when the host system is turned off. WebApplication - a collection of management functions for network resources

WebApplication - a collection ID of the associated network resource that can be reacted with a fully reasonable network address - a unique web application ID. Mapping - can access the Web Application Map URL prefix DOCBASE - Mount the web The relative path of the primary document of Application MaxInactiveInterval - Session's longest expiration time =================================== ===================== StartServer command parameters:

-HELP Display Help Information-Config [file | URL] Read configuration information from the specified file, or [file | URL] - NOCONFIG does not read configuration information - ADMINPORT [INT] Specify management port -serviceID [str] start specified ServiceID Services - Pot [: ID |: *] [INT] Monitor the port of the specified serviceID - INet [: id |: *] [inetaddr] binds the new [inetaddr] of the IP server to the specified ServiceID - Hostname [: id |: *] [Name] Using new hostname [Name] as the host name of the specified serviceID service, the host name -DocBase [: id |: *] [Name] uses URL addresses [Name] The main document of the service as the specified serviceID - Workdir [: ID |: *] [Name] uses the folder of the [Name] position as a work record folder for the service of the Specified ServiceID

============================================================================================================================================================================================================= ====== Detailed description of the properties configuration: "ID" of the same type of element must be unique. Most of the values ​​of the configuration items can be set by one of the following three different ways. Parameters 2 of the startserver command. The value of the corresponding configuration item of the XML file. The DTD of the XML file is the default value for the AND / OR settings for the corresponding configuration item, which is in the XML DTD, or has a default value in the JSWDK. These default values ​​can be replaced by modifying the value of the webserver.xml file of the STARTSERVER command imported.

The JSWDK server can use the configuration information set in the default webserver.xml on some platforms, you can use it without any adjustment.

If the JSWDK server is initialized, if there is no webserver.xml file that stores the configuration information in the installation directory, do not use the "-config [file | url]" parameter when using the startserver command, specify a file containing configuration information. If the JSWDK server creates a default configuration file yourself. If you do not specify a WebServer management port, the JSWDK server will start attempt 5 times between port 2048 - 8192, find a valid port as a management port, if successful, the selected port will be written Enter the "WebserverLog.txt" file. If you do not specify the management port of the Webserver, the server does not start when the JSWDK tries to find a port. The ID attribute of the element WebServer may be canceled in the later version. Element WebApplication's mapping property is a URI prefix that allows an instance of the web application to access the Web Application through the corresponding address. The value of this elementality must be unique in the same way. In the later version, the name of the element attribute may be modified to "Path".

The DOCBASE attribute of the element WebApplication is when the Web Application is called by the network, the web server can find the physical path to the web application. The description of the value of this elementality and the description of the DOCBASE attribute of the above element Server have a lot of similar points.

Elements WebApplication MaxInactiveInterval properties are currently not used. In successive versions may be used as the specified "session expiration time".

============================================================================================================================================================================================================= ======

Other Note: As long as you use the already indicated DTD format and the corresponding rules, you will be able to write XML content, the configuration information of many service and web application instances can be easily added to the configuration information of the existing web server.

============================================================================================================================================================================================================= ======

>

]>

->

转载请注明原文地址:https://www.9cbs.com/read-29811.html

New Post(0)