+ -
当前位置:首页 → 问答吧 → CentOs5与Tomcat6.0.32多站点配置问题

CentOs5与Tomcat6.0.32多站点配置问题

时间:2011-06-11

来源:互联网

<Host name="localhost" appBase="webapps"
  unpackWARs="true" autoDeploy="true"
  xmlValidation="false" xmlNamespaceAware="false">
</Host>
<Host name="vip.xxx.com" appBase="webapps"
  unpackWARs="true" autoDeploy="true"
  xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/home/vip" debug="0" reloadable="true" crossContext="true"/>
</Host>
<Host name="case.xxx.com" appBase="webapps"
  unpackWARs="true" autoDeploy="true"
  xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/home/case" debug="0" reloadable="true" crossContext="true"/>
</Host>


平台:centOs5 + tomcat 6.0.32

怎么访问的域名都是默认站点(webapps目录下项目)呢?Context属性根本就没管用!!!

在win下都正常!

如果把localhost appBase改一下的话,默认站点可以用,其它站点也不起作用!

作者: xyflash2   发布时间: 2011-06-11

帮顶……

作者: inetfuture   发布时间: 2011-06-11