如何使tomcat 6以非ROOT应用程序名称运行多个域
我正在尝试在 Linux 服务器上的 tomcat 6 上运行多个域。
当我按照此处的步骤操作时,出现 404 错误 http://tomcat.apache.org/tomcat-6.0- doc/virtual-hosting-howto.html
这是conf
server.xml
<Engine name="Catalina" defaultHost="a.mydomain.com">
<Host name="a.mydomain.com" appBase="aapps" autoDeploy="true" unpackWars="true" />
<Host name="b.mydomain.com" appBase="bapps" autoDeploy="true" unpackWars="true" />
</Engine>
<Tomcat>/conf/Catalina/a.mydomain.com/ROOT.xml
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="/opt/tomcat/aapps/portal" reloadable="true" path=""></Context>
<Tomcat>/conf/Catalina/b.mydomain.com/ROOT.xml
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="/opt/tomcat/bapps/portal" reloadable="true" path=""></Context>
我在这里做错了什么?
顺便说一句,tomcat在/conf/Catalina/a.mydomain.com/中自动生成了一个portal.xml
I am trying to run multiple domain on a tomcat 6 on a linux server.
I got 404 Errors when I follow the steps here
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
Here is the conf
server.xml
<Engine name="Catalina" defaultHost="a.mydomain.com">
<Host name="a.mydomain.com" appBase="aapps" autoDeploy="true" unpackWars="true" />
<Host name="b.mydomain.com" appBase="bapps" autoDeploy="true" unpackWars="true" />
</Engine>
<Tomcat>/conf/Catalina/a.mydomain.com/ROOT.xml
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="/opt/tomcat/aapps/portal" reloadable="true" path=""></Context>
<Tomcat>/conf/Catalina/b.mydomain.com/ROOT.xml
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="/opt/tomcat/bapps/portal" reloadable="true" path=""></Context>
What am I doing wrong here?
by the way, tomcat auto generated a portal.xml in the /conf/Catalina/a.mydomain.com/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的workers.properties和上下文映射是什么样的?
What do your workers.properties and context maps look like?