Tomcat server running hidden project name

Source: Internet
Author: User

Tomcat server running hidden project name


The project name in the URL needs to be omitted in the recent project development, and the solution is as follows:

Start Tomacat in 1.IDE: If the project file is in the IDE, you can right-click Project-"Properties-" Web project Settings,context root modified to/

2. See the methods provided by others, unsuccessful, recorded as follows:

Directly in the server.xml between <Host></Host> added a sentence <context path= "" docbase= "/fts" debug= "0" reloadable= "true"/> Where the/test in docbase= "/test" is the project name


Put the project under the Tomcat6\webapps.

Modify Host

<context path= "/" docbase= "/test" debug= "0" reloadable= "true" ></Context>

</Host>

This allows you to access the project with the project name through the domain name www.test.com.


Tomcat server running hidden project name

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.