The method of deploying simple html static Web pages in tomcat
First of all, the computer (whether Windows or Linux system) should be installed java and Tomcat, and set their environment variables.
After setting, start Tomcat, open the browser and enter the URL: http://ip:port. If the corresponding page appears, it means Tomcat installation is successful. You can continue the following configuration.
Add the following to\conf\server.xml
Where Host name="ip address" docBase="html folder name under webapps"
After configuration, put the folder with html in tomcat webapps directory (appBase="webapps")
Enter ip:port/index.html on the web page to access it. Change it to the corresponding ip here. If the start page is not index.html, set it accordingly.
The demonstration is as follows:
1. Create a new test folder under the webapps directory of tomcat and put it into the test.html file.
2. Set the following in conf\server.xml of tomcat
Then start tomcat and type ip: port/test.html in your browser to access the
The above is all the content of this article, I hope to help everyone's study, but also hope that everyone a lot of support.