您的位置:首页 > 运维架构 > Tomcat

一个Tomcat配置多个IP,服务多个站点的配置

2009-02-21 14:57 375 查看
多个IP就不需要虚拟主机啦。可以直接在conf/server.xml里配置就行了。
你有多个Host就写几个就好了!



<Host name="192.168.0.1" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false"
        xmlNamespaceAware="false">
        <Context path="" reloadable="true" debug="true" docBase="coun" />
      </Host>
      <Host name="117.12.57.222" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false"
        xmlNamespaceAware="false">
        <Context path="" reloadable="true" debug="true" docBase="ROOT" />
      </Host>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: