zoukankan      html  css  js  c++  java
  • linux_windows下配置tomcat区别 ,不同子域名映射不同 项目

    windows下

    均为修改tomcat/bin/server.xml

    在最后

    替换 注意 docBase /

     1  <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
     2              resourceName="UserDatabase"/>
     3 
     4       <!-- Define the default virtual host
     5            Note: XML Schema validation will not work with Xerces 2.2.
     6        -->
     7         <Host name="www.haoshuju.cn" appBase="D:	oolsapache-tomcat-6.0.36haoshuju" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
     8             <Context path="" docBase="/" reloadable="true"/> 
     9         </Host> 
    10         <Host name="app.haoshuju.cn" appBase="D:	oolsapache-tomcat-6.0.36app"       unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
    11             <Context path="" docBase="/" reloadable="true"/>
    12         </Host> 
    13     </Engine>
    14   </Service>
    15 </Server>

    linux下 注意docBase=""

     1     <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
     2              resourceName="UserDatabase"/>
     3 
     4      
     5      <Host name="www.haoshuju.cn" appBase="/usr/local/java/tomcat6/haoshuju" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
     6             <Context path="" docBase="" reloadable="true"/> 
     7         </Host> 
     8           <Host name="app.haoshuju.cn" appBase="/usr/local/java/tomcat6/haoshuju/app" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
     9             <Context path="" docBase="" reloadable="true"/>
    10          </Host> 
    11     
    12 
    13      
    14     </Engine>
    15   </Service>
    16 </Server>
  • 相关阅读:
    nodejs dateformat date-utils
    nodejs async
    nodejs dateformat date-utils
    nodejs timer block-timer timer-ease
    linux 修改 ssh 的端口号,启动hg服务
    linux 下添加 路由
    tkprof 命令行工具用法
    通过API删除库存货位
    使用FROM个性化修改标准FORM的LOV
    批量更新 ITEM 物料属性
  • 原文地址:https://www.cnblogs.com/cphmvp/p/3669744.html
Copyright © 2011-2022 走看看