关于Tomcat下多个项目域名配置的问题

关于Tomcat下多个项目域名配置的问题

<?xml version='1.0' encoding='utf-8'?>

<Server port="8005" shutdown="SHUTDOWN">

  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />

  <Listener className="org.apache.catalina.core.JasperListener" />

  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

 
  <GlobalNamingResources>
   
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

 
  <Service name="Catalina">
  
   
    <Connector port="80" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />
   
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

    <Engine name="Catalina" defaultHost=www.why-e.com.cn>

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <Host name=www.why-e.com.cn appBase="webapps"
             unpackWARs="true" autoDeploy="true" debug="0">
    <Context path="" docBase="E:\Tomcat 5.0\webapps\why-e\" reloadable="true" crossContext="true"/>
      </Host>

      <Host name=www.whyeit.com.cn appBase="webapps"
             unpackWARs="true" autoDeploy="true" debug="0">
    <Context path="" docBase="E:\Tomcat 5.0\webapps\whyeit\" reloadable="true" crossContext="true"/>
      </Host>

    </Engine>

  </Service>
</Server>

 

你可能感兴趣的:(apache,tomcat,xml)