Tomcat 7(虚拟主机?) [英] Tomcat 7 (Virtual hosts?)
本文介绍了Tomcat 7(虚拟主机?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在端口8082(例如)上使用我的Web应用程序,并且它可以正常工作.但是我想在端口8080(具有默认的Tomcat页面)上保持连接,我可以连接吗?如何操作?
I want use my web application on port 8082 (for example), and it is working correctly. But I want to leave connection on port 8080 (with default Tomcat page), can I do it and how?
推荐答案
您需要编辑conf/server.xml以添加另一个服务,例如
you need edit the conf/server.xml to add another Service, such as
<Service name="for_host1">
<Connector port="8082" .. />
<Engine name="Catalina_host1" defaultHost="stimpy">
<Host name="stimpy" appBase="stimpyapps"/>
</Engine>
</Service>
<Service name="default">
<Connector port="8080" .. />
<Engine name="Catalina" defaultHost="ren">
<Host name="ren" appBase="renapps"/>
</Engine>
</Service>
这篇关于Tomcat 7(虚拟主机?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文