Tomcat deployment Simple HTML static Web __html

Source: Internet
Author: User

First, you should install Java and Tomcat on your computer (whether it's Windows or Linux) and set up their environment variables.

When Setup is complete, start Tomcat and open the browser input URL: http://ip:port, if the appropriate page appears, indicating that Tomcat installation was successful, you can continue to the following configuration.

Add the following in the \conf\server.xml </Host> </Engine>

<context path= "" docbase= "TOT" debug= "0" reloadable= "true" crosscontext= "true"/>

<logger classname= "Org.apache.catalina.logger.FileLogger" directory= "Logs" prefix= "Tot_log". "suffix=". txt Timestamp= "true"/>

</Host>

Where host Name= "IP address" docbase= placed under WebApps HTML folder name "

Once configured, place the HTML folder under Tomcat's WebApps directory (appbase= "WebApps")

In the Web page input ip:port/index.html can be accessed, here to the corresponding IP, if the start page is not index.html also to make the appropriate settings.


The demo is as follows:

1, in Tomcat WebApps directory to create a new test folder, put the written test.html file

2, in Tomcat Conf\server.xml set the following


Then start Tomcat and then enter ip:port/test.html in the browser to access the

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.