HTML Deployment to Tomcat

Source: Internet
Author: User

First of all, Java and Tomcat should be installed on the computer, and their environment variables should be set.

After Setup is complete, launch Tomcat, click \bin\tomcat6, open Browser input URL: http://localhost:8080, if the corresponding page appears, the Tomcat installation is successful, you can continue the following configuration.

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

<context path= "" docbase= " placed under WebApps HTML folder name " debug= "0" reloadable= "true" crosscontext= "true"/>

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

</Host>

Once configured, place the HTML folder in the WebApps directory of Tomcat (appbase= "WebApps")

In the Web page input ip:8080 placed under the WebApps HTML folder name/index.html can be accessed, here to the corresponding IP, if the start page is not index.html also need to set the corresponding.

HTML Deployment to Tomcat

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.