Description of each domain in Server.xml

xiaoxiao2021-03-06  41

element represents the entire container, which is the top layer element of the Tomcat instance. It is defined by the org.apache.catalina.server interface. It contains a element. And it cannot be any element of any element. 1> classname Specifies the class that implements the org.apache.catalina.server interface. The default value is org.apache.catalina.core.standardServer2> Port Specifies Tomcat monitor shutdown command Port. Terminate the server running, you must issue a shutdown command on the machine where the Tomcat server is located. This property is a string of the SHUTDOWN listening port that is required to terminate the Tomcat server run when the Tomcat server is terminated. Setting element This element is defined by the org.apache.catalina.Service interface, which contains a element, and one or more , these Connector elements share the same Engine element The first process all the web client requests received directly by the Tomcat server. Second Processing all web clients forwarded by APAHCE Server 1> ClassName Specify implementation Org.apahce.catalina.Service interface class. Default is org.apahce.catalina.core.standardService2> Name Define Service Name Each service element can only have an engine element. Element handles in the same All Elements are received by the client request. Definition of org.apahce.catalina.Engine interface. 1> classname Specifies the implementation of Engine interface Class, default value for StandardEngine2> DefaultHost Specifies the default host name for processing customers, > Sub Elements must define this host 3> Name Definition ENGINE Name in You can include the following elements , , , element is defined by the Host interface. One ENGINE elements can contain multiple elements. Each defines a virtual host. It contains one or more web applications. 1> classname Specifies the class that implements the Host interface. The default value is StandardHost2> AppBase Specifies the directory of the virtual host, you can specify an absolute directory or specify a relative directory relative to If there is no such item, the default is / WebApps3>

AutodePloy If this item is set to True, when the Tomcat service is running, the file under AppBase can be monitored. If there is a new web application join, it will be shipped to publish this web application 4> unpackwars If this setting is true, indicating Run the WAR file of the web application first to open the open directory structure. If set to false, the direct behavior WAR file 5> Alias ​​Specify the host alias, you can specify multiple individual names 6> DeployonStartup If this item is set to true, indicate Tomcat All web applications in the AppBase directory are automatically published when the server starts. If the server.xml in the web application does not have the corresponding element, the name of the Tomcat default Context7> Name defines the name of the virtual host in element Contains as the sub-element , , , element is defined by the Context interface. It is the most frequent element. Each can contain multiple elements. Each web application has a unique CONTEXT representative web app itself. Servlet container creates a servletContext object for the first web application. 1> classname Specifies the class that implements Context, the default is the StandardContext class 2> Path specifies the URL entry to access the web application, pay attention to / myWeb, not MyWeb 3> Reloadable If this property is set to true, the Tomcat server monitors the transfer of the web-inf / class and web-inf / lib directory Class files in the run state. If the monitor has a Class file being updated, the server Self-loading Web Applications 3> cookies Specify whether to support Session via cookies, the default value is true4> useenaming Specifies whether to support JNDI, the default value can contain the following elements in the element , , < Resource>, Connector elements are defined by the Connector interface. Element Representative and customer programs actually The interaction is given, it is responsible for receiving a customer request, and returning response to the customer. The first Connector element defines an HTTP Connector, which receives the HTTP request via the 8080 port;

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

New Post(0)