• 人民网舆情分析专家:韩长青 2019-10-15
  • 陕北共产党发起人——李子洲 2019-10-15
  • 迈向命运共同体 开创亚洲新未来 2019-10-11
  • 北京市永定门奥迪中心4S店【在线咨询】 2019-10-11
  • 我发现从五+年代农业用化肥农药,在六+年代几百年长的柿树几乎死光。没人研究! 2019-10-10
  • 游戏成瘾是精神疾病!快看你有没有这些症状 2019-10-10
  • 乌鲁木齐市社会保险管理局社保工作人员开贴,在线解答社 2019-10-02
  • 江西省“放管服”改革再出实招 2019-10-01
  • 抚州发现“一代布王”李璟禧故居 2019-10-01
  • 钱江晚报:火锅店被吃垮,实际是信任破产 2019-09-23
  • 新疆网违法和不良信息举报受理和处置管理办法 2019-09-23
  • 水费欠账竟“穿越”16年?用户质疑:为何没见催缴过? 2019-09-11
  • 青海学习十九大精神嵌套页面--青海频道--人民网 2019-09-11
  • 图片报道:江西省峡江县举行公共租赁住房钥匙发放仪式 2019-09-09
  • 机器人正在敲响未来生活的“大门” 2019-09-09
  • 
      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-10-15
  • 陕北共产党发起人——李子洲 2019-10-15
  • 迈向命运共同体 开创亚洲新未来 2019-10-11
  • 北京市永定门奥迪中心4S店【在线咨询】 2019-10-11
  • 我发现从五+年代农业用化肥农药,在六+年代几百年长的柿树几乎死光。没人研究! 2019-10-10
  • 游戏成瘾是精神疾病!快看你有没有这些症状 2019-10-10
  • 乌鲁木齐市社会保险管理局社保工作人员开贴,在线解答社 2019-10-02
  • 江西省“放管服”改革再出实招 2019-10-01
  • 抚州发现“一代布王”李璟禧故居 2019-10-01
  • 钱江晚报:火锅店被吃垮,实际是信任破产 2019-09-23
  • 新疆网违法和不良信息举报受理和处置管理办法 2019-09-23
  • 水费欠账竟“穿越”16年?用户质疑:为何没见催缴过? 2019-09-11
  • 青海学习十九大精神嵌套页面--青海频道--人民网 2019-09-11
  • 图片报道:江西省峡江县举行公共租赁住房钥匙发放仪式 2019-09-09
  • 机器人正在敲响未来生活的“大门” 2019-09-09
  • 31选7走势图及开奖 北京pk赛车彩票合法吗 波叔一一波中特 黑龙江快乐十分前三组走势图 好彩客幸运28投注技巧 彩票快3选号技巧 湖北楚天风采30选5开奖 四不像图+一肖中特 福利彩票中奖查询 吉林快三走势图一定牛 体彩p5走势图综合版 北京pk赛车下载 扑克发底牌基本功 怎样买竞彩足球不会亏 电子竞技赚不赚钱