Explain in detail the method of deploying static html websites by tomcat
First, download tomcat (apache-tomcat-8.5.6)
Put static html pages and related files in a directory, such as directory A
Put the A directory under the..:\ apache-tomcat-8.5.6\ webapps directory.
Specify the tomcat access port number (find the server.xml file in the directory shown in the figure and open it)
5. Find the port port line and change the port number you want to use (as long as it is not occupied) as shown in the figure:
6. Add a line of code at the end of this file, in which the docBase path can be written from tomcat to your A directory (the xml file under A directory is the absolute path of your access address) as shown in the following figure
7. For example, if ip is 192.168.1.188 and port is 8888, if I want to access the start.html under directory A, the access address is: 192.168.1.188:8888/A/strat.html
8. Even if you deploy a static html website to tomcat, it is over.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.