TOMCAT6, turn on IP to access an app under a WebApps

Source: Internet
Author: User

There are several apps under Tomcat under WebApps, but I want to enter the IP in the browser to access an app without having to enter the application directory name. So please open Conf\server.xml .
Locate the Host node and add a Content,path of ""

unpackwars= "true" autodeploy= "true"
xmlvalidation= "false" Xmlnamespaceaware= "false" >
   <context path= "" Docbase= "C:\Program Files (x86) \apache software foundation\tomcat 6.0\webapps\bookdir "reloadable=" true "debug=" 0 ">///Enter IP to access an app
</Context>
<!--Singlesignon valve, share authentication between Web applications
documentation at:/docs/config/valve.html --
<!--
<valve classname= "Org.apache.catalina.authenticator.SingleSignOn"/>
-

<!--Access log processes all example.
documentation at:/docs/config/valve.html --
<!--
<valve classname= "org.apache.catalina.valves.AccessLogValve" directory= "Logs "
prefix= "Localhost_access_log." suffix= ". txt" pattern= "common" resolvehosts= "false"/>
-

</Host>


is the project name.

The red part is the project address.

This article is from "Yong Xin Technology Blog" blog, please be sure to keep this source http://rusth2015.blog.51cto.com/9973392/1618570

TOMCAT6, turn on IP to access an app under a WebApps

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.