Tomcat changes localhost home page, map to app address

Source: Internet
Author: User

Open the service.xml of Tomcat and modify the Path property of the context tag under the host tag.

For example, if the path above is modified to be empty, then I visit http://localhost:8080/, then I jump directly to my Web application, which is BeikeBookV2.

If path is "/beikebookv2", then access the Web App by accessing Http://localhost:8080/BeikeBookV2.

<connector uriencoding= "UTF-8" connectiontimeout= "20000" port= "+" protocol= "http/1.1" redirectport= "8443"/> <connector uriencoding= "UTF-8" connectiontimeout= "20000" port= "+" protocol= "http/1.1" redirectport= "8443"/>

If we modify the connector tag in which the port is 80, then we can access the http://localhost/directly to access the application BeikeBookV2.

Long time no record learned things, although it is on-line learning, the back regardless of the contents of the book or the online learning of the small knowledge also try to record.

Tomcat changes localhost home page, map to app address

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.