zoukankan      html  css  js  c++  java
  • tomcat 除去项目名访问+去端口访问+多项目配置,

    除去项目名访问:

      在tomcatcofserver.xml中 <Host>标签下加上如下代码:

      <Context path="" docBase="/项目名" debug="0" reloadable="true"/>

    除去端口访问:

      <Connector>标签中 port="8080" 改成-->port=“80”

    多项目配置:

      <Host name="127.0.0.1"  appBase="webapps"
                unpackWARs="true" autoDeploy="true"
                xmlValidation="false" xmlNamespaceAware="false">
            <Context path="" docBase="/项目名1" debug="0" reloadable="true"/>
          </Host>

      <Host name="localhost"  appBase="webapps"
                unpackWARs="true" autoDeploy="true"
                xmlValidation="false" xmlNamespaceAware="false">
            <Context path="" docBase="/项目名2" debug="0" reloadable="true"/>
          </Host>

      访问项目1方式:http://127.0.0.1:8080

      访问项目2方式:http://localhost:8080

  • 相关阅读:
    数据结构与算法(0)--必知必会
    数据结构概览
    Python 数据分析学习路线
    数据分析交互工具--使用jupyter
    Vue项目搭建
    luffy_08
    luffy_07
    luffy_06
    luffy_05
    luffy_04
  • 原文地址:https://www.cnblogs.com/ai211234/p/5718776.html
Copyright © 2011-2022 走看看