1, remove the port number 8080.
First, enter the conf directory under the tomcat installation directory, my directory is /usr/local/apache-tomcat-9.0.20/conf, edit the file server.xml.
The server.xml, the
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="40000" redirectPort="8443" enableLookups="false" minProcessors="10" maxProcessors="1024" acceptCount="1024" />
把port="8080",
Revised to 80
2, remove the item name projectName
Add between inside server.xml, <host> ... </ host> tag <Context path = "" docBase = "projectName" debug = "0" />
3, configure the domain name
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
Modify name = "localhost" this part of the modified binding domain host.
If the host bind multiple domain names can be added directly host.