tomcat --host, webapp configuration

<Host name="localhost"  appBase="/Data/WEB_APP/enterprise_app"  
          unpackWARs="true" autoDeploy="true">
      <Context path="" docBase="ROOT" workDir="/Data/WEB_APP/work/enterprise_app" />

 

appBase represents the base directory of the application, and the original default location is "webapps", which is the folder webapps under the tomcat root directory;

context A single web application deployed on the virtual host <Host>

path The virtual directory corresponding to the application deployed under tomcat

The path of the webapp corresponding to the virtual directory specified by docBase,

               It is the access path after the war package is decompressed, which can be an absolute path or a relative path relative to the webapp)

workDir is the directory that is stored when running and compiling into java binary code.

Guess you like

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