Server.xml configuration introduction

xiaoxiao2021-03-06  46

Server.xml Configuration Introduction Let's describe the basic configuration information in this file, more specific configuration information see Tomcat's document Server: port specifies a port, this port is responsible for monitoring the request Shutdown specifying the command string sent to the port. Service: Name Specifies the NETNETORT CONNECTOR (Connection between Client and Service): Port Specifies the port number to be created by the server side, and listened to the number of processes created when the client's request minprocessors server is started. The maximum number of processing requests that MaxProcessors can create Enablelookups If true, you can get the actual host name of the remote client by calling the repaSt.getRemoteHost (). If false does not perform DNS queries, but return it IP Address RedirectPort Specifies that the server is processing the HTTP request to receive an SSL transfer request, the port number acceptCount, which can be placed when all the threads that can be used, can be placed in the process queue, exceeding this The number of requests will not process the timeout (in milliseconds) of the timeout (in milliseconds) ENGINE (indicating that the request processor, receiving and processing from the Connector): DefaultHost specifies the host name of the default processing request, It is at least one of the name attribute values ​​of one of the host elements, which represents a web application, usually a WAR file, see the Servlet specification for the specific information of WAR): the path to the DOCBase application or the path stored by the WAR file Path represents the prefix of the URL of this web application, so requested URL is http: // localhost: 8080 / path / **** Reloadable This property is very important, if true, Tomcat will automatically detect the application / web -Inf / lib and / web-inf / classes directory, automatically load new applications, we can change the application host in the case of Tomcat: Name Specifies the hostname AppBase application Basic directory, that is, the directory where the application is stored, if True, Tomcat will automatically decompress the WAR file, otherwise it is not extracted, running directly from the WAR file. Application Logger (Represents Log, Debugging, and Error Message): ClassName Specifies the class name used by the Logger. This class must implement org.apache.catalina.logger interface prefix Specifies the prefix for the log file. SUFFIX Specifies the suffix of the log file. TimeStamp is true, The log file name is to join the time, an example: localhost_log.2001-10-04.txt realm (indicating that the user name, password, and role database): classname Specifies the class name used by Realm, and this class must implement org.apache. Catalina.Realm Interface Valve (function is similar to Logger, its prefix and suffix attributes explains the same as the logger): classname Specifies the class name used by Valve, such as using org.apache.catalina.valves.AccessLogvalve class to record applications access Information Directory Specifies the position pattern of log files to store with two values, and the common host name or IP address, user name, date, first line requested string, HTTP response code, the number of bytes sent.

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

New Post(0)