标签:
Apache2.4 tomcat7.0 jdk1.7
Define SRVROOT "D:\Apache24"
Listen 8088
ServerName localhost:8088
ProxyRequests Off
<VirtualHost *:8088>
ServerAdmin webmaster@dummy-host2.a.com
ServerName localhost
ServerAlias localhost
ProxyPass / balancer://proxy/ stickysession=JSESSIONID nofailover=On
ProxyPassReverse / balancer://proxy/
<Proxy balancer://proxy>
BalancerMember ajp://127.0.0.1:8019 loadfactor=1 route=tomcat1
BalancerMember ajp://127.0.0.1:8029 loadfactor=1 route=tomcat2
BalancerMember ajp://127.0.0.1:8039 loadfactor=1 route=tomcat3
</Proxy>
</VirtualHost>
<VirtualHost *:8088>
ServerAdmin webmaster@dummy-host2.a.com
ServerName localhost
ServerAlias localhost
ProxyPass / balancer://proxy/ stickysession=JSESSIONID nofailover=On
ProxyPassReverse / balancer://proxy
<Proxy balancer://proxy>
BalancerMember http://127.0.0.1:8081/ loadfactor=1 route=tomcat1
BalancerMember http://127.0.0.1:8082/ loadfactor=1 route=tomcat2
BalancerMember http://127.0.0.1:8083/ loadfactor=1 route=tomcat3
</Proxy>
</VirtualHost>
<Server port="8015" shutdown="SHUTDOWN">
<Connector port="8081" protocol="HTTP/1.1" URIEncoding="UTF-8"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8019" protocol="AJP/1.3" redirectPort="8443" acceptCount="300"
maxThreads="2000"
minSpareThreads="80"
enableLookups="false"
URIEncoding="UTF-8"/>
<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat1">
<Receiver port="8091"/>
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="6" />
标签:
原文地址:http://www.cnblogs.com/SH03/p/5147956.html