tomcat configuration domain deployment war project

The first step in the packaged war package into the webapps directory tomcat

 

Screenshot:

 

 

 

Step Two: Find the tomcat server.xml configuration file in the directory

server.xml in the conf folder below

 

Edit server.xml, change the position of the figure below 8080 port 80

 

 I have been here 80 changed the

 

 

 

third step:

The change in the Host name is the domain name or IP address to be set, is provided according to the present embodiment, the following domain name, in addition, we also require runtime configuration for a given application in Context Host. among them:

1. docBase (Document Base) was applied with respect to the path webapps, if the Web application name set docBase (Demo in this case), then you can not enter a project name Url address;

2. path for the application context path, if the default is empty indicates that the current Context Context as the default;

3. reloadable default is false, indicating whether the listener / and change / WEB-INF / classes / WEB-INF / lib directory of the application during the development phase can set it to true, but when the production environment is best set to false, otherwise it will occupy a larger virtual machine resources affect application performance.

 

 

Guess you like

Origin www.cnblogs.com/nongzihong/p/11890715.html