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