码迷,mamicode.com
首页 > 其他好文 > 详细

tomcat 域名直接访问默认工程,而不添加项目路径

时间:2018-08-05 11:57:14      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:temp   xxxxxx   har   for   tween   att   class   web app   its   

<Engine name="Catalina" defaultHost="xx.xx.xx.xx">

<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
-->

<!-- Use the LockOutRealm to prevent attempts to guess user passwords
via a brute-force attack -->
<Realm className="org.apache.catalina.realm.LockOutRealm">
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>

<Host name="xx.xx.xx.xx" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="/apache-tomcat-xxxxxx/webapps/XXX" debug="0" reloadable="true"/>

<!-- 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
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t &quot;%r&quot; %s %b" />

</Host>
</Engine>

tomcat 域名直接访问默认工程,而不添加项目路径

标签:temp   xxxxxx   har   for   tween   att   class   web app   its   

原文地址:https://www.cnblogs.com/maohuidong/p/9424755.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!