丹调生活 发表于 2017-12-25 07:15:39

apache server和tomcat集群配置二:垂直负载

<!-- Define an AJP 1.3 Connector on port 8009 -->  <Connector port="9009" protocol="AJP/1.3" redirectPort="8443"/>
  

  

  <!-- An Engine represents the entry point (within Catalina) that processes
  every request.The Engine implementation for Tomcat stand alone
  analyzes the HTTP headers included with the request, and passes them
  on to the appropriate Host (virtual host).
  Documentation at /docs/config/engine.html -->
  

  <!-- You should set jvmRoute to support load-balancing via AJP ie :
  <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
  -->
  <Engine defaultHost="localhost" name="Catalina" jvmRoute="tomcat2">
  

  <!--For clustering, please take a look at documentation at:
  /docs/cluster-howto.html(simple how to)
  /docs/config/cluster.html (reference documentation) -->
  


  <Cluster>  

  <!-- Use the LockOutRealm to prevent attempts to guess user passwords
  via a brute-force attack -->

  <Realm>  <!-- This Realm uses the UserDatabase configured in the global JNDI
  resources under the key "UserDatabase".Any edits
  that are performed against this UserDatabase are immediately
  available for use by the Realm.-->

  <Realm>  </Realm>
  

  <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
  

  <!-- SingleSignOn valve, share authentication between web applications
  Documentation at: /docs/config/valve.html -->
  <!--

  <Valve>  -->
  

  <!-- Access log processes all example.
  Documentation at: /docs/config/valve.html
  Note: The pattern used is equivalent to using pattern="common" -->

  <Valve>  


  <Context docBase="TestCluster" path="/TestCluster">  </Engine>
页: [1]
查看完整版本: apache server和tomcat集群配置二:垂直负载