Tomcat configuration file Host element attribute introduction

1. Attribute name: appBase, object of use: all, meaning: the path of the web application directory of this Host (the directory where the web application and/or WAR file resides). Can be a relative path to CATALINA_HOME, or an absolute path, default: none; required element

 

   2. Attribute name: autoDeploy, Object of use: all, Meaning: Boolean table value, when Tomcat is running, decides whether Tomcat will automatically deploy the new web application in the appBase directory of the Host. If this property is set to true, append the unpacked directory or WAR file of the web application to the appBase directory while Tomcat is running, and Tomcat will implement the deployment immediately. , default: true

 

   3. Attribute name: className, using object: all, meaning: fully qualified class name implemented by the Host container. This class must implement org.apache.catalina.Host, default value: org.apache.catalina.core.standardHost

 

   4. Attribute name: deployOnstartup, object of use: all, meaning: Boolean type tag, determines whether Tomcat automatically deploys the web application found in the appBase directory of the Host when it starts. , default value: true

 

   5. Attribute name: deployXML, object of use: S, meaning: Boolean type tag, determines whether Tomcat automatically deploys web applications with context XML fragment files in the CATALINA_HOME/conf/[engine-name]/[host-name] directory , default value: true

 

   6. Attribute name: errorReportValVeClass, object of use: S, meaning: allow Java developers to customize error pages, must implement org.apache.catalina.Valve, default value: org.apache.catalina.valves.Error-ReportValve

 

   7. Attribute name: name, use object: all, meaning: Host name. Among all the Host names of Engine , it must be unique, default value: none; required attribute

 

   8. Attribute name: unpackHars, object of use: S, meaning: a flag that determines whether to unpack the WAR file before Tomcat starts the web application. If true, Tomcat serves the web application's resources outside the unpacked directory. If false, the web application's resources are served outside the compressed WAR file, default: true

 

   9. Attribute name: workDir, object of use: S, meaning: in addition to specifying different workDir in Contexts, the temporary file path name used by all web applications in the Host, default value: \${catalina.base}/ work

 

   10. Attribute name: xmlNamespaceAware, use object:, meaning: This flag knows to enable or disable XML namespace. Set this value and xmlValidation to true, indicating that the validity check is performed on the web.xml file. Default value: false

 

   11. Attribute name: xmlValidation, object of use:, meaning: a flag that determines whether Tomcat performs validity verification on the Web.xml file. In most Tomcat versions, this feature is not very useful because the XML parser is not compatible with the XML parser in the JVM up to and including Sun JDK 1.6.0, default: false

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326680700&siteId=291194637