• 绍兴印染布质量比对成果发布 部分指标国际领先 2019-07-11
  • 陕西守艺人丨一场大火后,她带领600羌州绣娘从头开始 2019-07-11
  • 今日武汉中考考生可看考点考场 进行英语听力试听 2019-07-08
  • 中方坚决捍卫国家利益和人民利益 2019-07-08
  • "创造101"杨超越引争议 表演业余人气高别光怨选手 2019-07-07
  • 风水神话的回帖除了对我的攻击以外吗,别的还有什么吗? 2019-06-21
  • 通过学历教育、职业培训、在线学习等渠道 新区居民将享天津职教资源 2019-06-17
  • 千名新疆学子的梦想在鄱湖之滨启航 2019-06-13
  • 晋冀鲁豫人民日报印刷厂的组建与迁徙 2019-06-01
  • 高清图集:习近平在山东考察 2019-05-28
  • 让海淀城市“名片”更闪亮 2019-05-28
  • 轻生活,做不一样的自己 2019-05-27
  • 【理上网来·辉煌十九大】德国北威州经济部长:十九大报告表明中国有能力为世界做出更多贡献 2019-05-27
  • 端午出行怕拥堵 别慌,这里有一份出行指南 2019-05-24
  • 空军飞行学员展开高强度实战打靶 消耗千余枚弹药 2019-05-24
  • 
      The Apache Tomcat Servlet/JSP Container

    十三水棋牌游戏币:Apache Tomcat 7

    Version 7.0.68, Feb 8 2016
    Apache Logo

    qq游戏里有十三水这个游戏吗 www.tdgb.net Links

    User Guide

    Reference

    Apache Tomcat Development

    Virtual Hosting and Tomcat

    Table of Contents
    Assumptions

    For the sake of this how-to, assume you have a development host with two host names, ren and stimpy. Let's also assume one instance of Tomcat running, so $CATALINA_HOME refers to wherever it's installed, perhaps /usr/local/tomcat.

    Also, this how-to uses Unix-style path separators and commands; if you're on Windows modify accordingly.

    server.xml

    At the simplest, edit the Engine portion of your server.xml file to look like this:

    
    <Engine name="Catalina" defaultHost="ren">
        <Host name="ren"    appBase="renapps"/>
        <Host name="stimpy" appBase="stimpyapps"/>
    </Engine>
        

    Note that the directory structures under the appBase for each host should not overlap each other.

    Consult the configuration documentation for other attributes of the Engine and Host elements.

    Webapps Directory

    Create directories for each of the virtual hosts:

    
    mkdir $CATALINA_HOME/renapps
    mkdir $CATALINA_HOME/stimpyapps
        
    Configuring Your Contexts
    General

    Contexts are normally located underneath the appBase directory. For example, to deploy the foobar context as a war file in the ren host, use $CATALINA_HOME/renapps/foobar.war. Note that the default or ROOT context for ren would be deployed as $CATALINA_HOME/renapps/ROOT.war (WAR) or $CATALINA_HOME/renapps/ROOT (directory).

    NOTE: The docBase for a context should never be the same as the appBase for a host.

    context.xml - approach #1

    Within your Context, create a META-INF directory and then place your Context definition in it in a file named context.xml. i.e. $CATALINA_HOME/renapps/ROOT/META-INF/context.xml This makes deployment easier, particularly if you're distributing a WAR file.

    context.xml - approach #2

    Create a structure under $CATALINA_HOME/conf/Catalina corresponding to your virtual hosts, e.g.:

    
    mkdir $CATALINA_HOME/conf/Catalina/ren
    mkdir $CATALINA_HOME/conf/Catalina/stimpy
          

    Note that the ending directory name "Catalina" represents the name attribute of the Engine element as shown above.

    Now, for your default webapps, add:

    
    $CATALINA_HOME/conf/Catalina/ren/ROOT.xml
    $CATALINA_HOME/conf/Catalina/stimpy/ROOT.xml
          

    If you want to use the Tomcat manager webapp for each host, you'll also need to add it here:

    
    cd $CATALINA_HOME/conf/Catalina
    cp localhost/manager.xml ren/
    cp localhost/manager.xml stimpy/
          
    Further Information

    Consult the configuration documentation for other attributes of the Context element.

    Comments

    Notice: This comments section collects your suggestions on improving documentation for Apache Tomcat.

    If you have trouble and need help, read Find Help page and ask your question on the tomcat-users qq游戏里有十三水这个游戏吗. Do not ask such questions here. This is not a Q&A section.

    The Apache Comments System is explained here. Comments may be removed by our moderators if they are either implemented or considered invalid/off-topic.


    Copyright © 1999-2016, Apache Software Foundation
  • 绍兴印染布质量比对成果发布 部分指标国际领先 2019-07-11
  • 陕西守艺人丨一场大火后,她带领600羌州绣娘从头开始 2019-07-11
  • 今日武汉中考考生可看考点考场 进行英语听力试听 2019-07-08
  • 中方坚决捍卫国家利益和人民利益 2019-07-08
  • "创造101"杨超越引争议 表演业余人气高别光怨选手 2019-07-07
  • 风水神话的回帖除了对我的攻击以外吗,别的还有什么吗? 2019-06-21
  • 通过学历教育、职业培训、在线学习等渠道 新区居民将享天津职教资源 2019-06-17
  • 千名新疆学子的梦想在鄱湖之滨启航 2019-06-13
  • 晋冀鲁豫人民日报印刷厂的组建与迁徙 2019-06-01
  • 高清图集:习近平在山东考察 2019-05-28
  • 让海淀城市“名片”更闪亮 2019-05-28
  • 轻生活,做不一样的自己 2019-05-27
  • 【理上网来·辉煌十九大】德国北威州经济部长:十九大报告表明中国有能力为世界做出更多贡献 2019-05-27
  • 端午出行怕拥堵 别慌,这里有一份出行指南 2019-05-24
  • 空军飞行学员展开高强度实战打靶 消耗千余枚弹药 2019-05-24
  • 年赛马会欲钱料 期香港赛马会资料 浙江快乐12走势图连线 体彩江苏7位数18122 排列五走势图宝贝网 足彩胜负彩怎么中奖 新疆十一选五电脑版 北京单场7串1命中6个 牧马人心水论坛 河南22选5开奖结果 霸王玄机一尾中特 欢乐斗地主竞技版下载更新 青海11选5开奖查询 快乐扑克3论坛 欢乐斗地主卡主