如何更改tomcat的上下文路径? [英] how to change context path of tomcat?
本文介绍了如何更改tomcat的上下文路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在netbeans中,我可以右键单击项目名称,选择属性>运行>并更改上下文路径,
如何更改我的服务器上可以使用cPanel访问的tomcat的上下文路径?
In netbeans I can right click on project name, select properties > run > and change the context path, how can I change the context path of the tomcat on my server which is accessible using cPanel?
推荐答案
在 $ CATALINA_BASE / conf / [enginename] / [hostname] / $中添加root.xml文件c $ c>并将其添加为:
<Context
docBase="/opt/mywebapps/<yourApp>"
path=""
reloadable="true"
/>
有关详细信息,您可以使用Apache上下文配置链接: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
For more detail you can use the Apache context configuration link : http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
这篇关于如何更改tomcat的上下文路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文