Deploy Web to Tomcat

Source: Internet
Author: User

The first method: ()

Configuring Web Apps with related profile Server.xml under Tomcat

1. Open the Server.xml file under Conf in the Tomcat directory

2. Add <Context> elements between <Host></Host>. For example, the Web App Mywebproject under D:\WebTest\, which can be written like this:

<context path= "/test" docbase= "D:\WebTest\MyWebProject"/> save Server.xml.

3. Start Tomcat.

4. The browser opens, the address bar enters "http://localhost:8080/test", you can access the Mywebproject project.

Similar to this method, there is another way, the time relationship will be available next time to write.

The second method:

Copy the Web app to the specified directory

1. Copy the Web App folder to the WebApps directory under the Tomcat installation directory.

2. Then start the Tomcat server.

3. The browser opens, and the address bar is entered as a "http://serverIP:port/appsName" url, such as "Http://localhost:8080/myWebProject".

Deploy Web to Tomcat

Related Article

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: 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.