linux环境tomcat多域名指向多项目server xml配置 - LiberXue|FullStack|独立开发者|jekyll blog|GitHub blog

# linux环境tomcat多域名指向多项目server xml配置

发布时间：2017-07-03 07:04:19 博客分类: tomcat 阅读次数: comments
tomcat (1) tomcat多域名 (1) serverxml (1) EC2 (3) linux (2) java (1)

# linux环境tomcat多域名指向多项目server xml配置

2017-07-03 07:04:19

tomcat (1) tomcat多域名 (1) serverxml (1) EC2 (3) linux (2) java (1)

    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
        <Engine name="Catalina" defaultHost="localhost">
          <Realm className="org.apache.catalina.realm.LockOutRealm">
            <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                   resourceName="UserDatabase"/>
          </Realm>
          <Host name="www.edujoy.com.cn"  appBase="webapps"
                unpackWARs="true" autoDeploy="true">
            <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
                   prefix="edujoy_access_log." suffix=".txt"
                   pattern="%h %l %u %t &quot;%r&quot; %s %b" />
    	<Context docBase="//root/tomcat/webapps/ROOT/support" path="/support" reloadable="true" />
          </Host>
          <Host name="kefuzhongxin" appBase="/data/support" unpackWARs="true"
    	    autoDeploy="true">
            <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
                   prefix="kefuzhongxin_access_log." suffix=".txt"
                   pattern="%h %l %u %t &quot;%r&quot; %s %b" />

          </Host>
          <!-- 域名 tangtest.edujoy.com.cn -->
                <Host name="tangtest.edujoy.com.cn"  appBase="tangtest"
                unpackWARs="true" autoDeploy="true">
            <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
                   prefix="tangtest_access_log." suffix=".txt"
                   pattern="%h %l %u %t &quot;%r&quot; %s %b" />
    	<Context docBase="//root/tomcat/tangtest/ROOT/" path="" reloadable="true" />
          </Host>
            <!-- 域名  learntest.edujoy.com.cn/-->
                  <Host name="learntest.edujoy.com.cn"  appBase="learn"
                unpackWARs="true" autoDeploy="true">
            <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
                   prefix="learntest_access_log." suffix=".txt"
                   pattern="%h %l %u %t &quot;%r&quot; %s %b" />
    	<Context docBase="//root/tomcat/learn/" path="" reloadable="true" />
        </Engine>
      </Service>
    </Server>

本文由 liberxue 创作，采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外，均为本站原创或翻译，转载前请务必署名
最后编辑时间为:2017-07-03 07:04:19