ProxyRequests Off <proxy balancer://cluster> BalancerMember ajp://localhost:8019 loadfactor=1 route=test1 smax=5 max=20 ttl=120 retry=300 timeout=15 BalancerMember ajp://localhost:8029 loadfactor=2 route=test2 smax=5 max=20 ttl=120 retry=300 timeout=15 ProxySet lbmethod=bytraffic </proxy> <VirtualHost *:80> ServerAdmin weigbo@163.com ServerName ajp.exshop.com ProxyPass / balancer://cluster/ stickysession=JSESSIONID|jsessionid nofailover=On ProxyPassReverse / balancer://cluster/ ErrorLog "logs/ajp-clu-error.log" CustomLog "logs/ajp-clu-access.log" common </VirtualHost>
#<VirtualHost *:80>
# ServerAdmin jiying@126.com # ServerName ajp.exshop.com # DocumentRoot "D:/ftphome/ajp" # <Directory "D:/ftphome/ajp"> # DirectoryIndex index.html # Order allow,deny # Allow from all # </Directory> # JkMount /*.jsp loadbalancer # HostnameLookups Off # ErrorLog "logs/ajp-test-error.log" # CustomLog "logs/ajp-test-access.log" common #</VirtualHost>
<VirtualHost *:80>
ServerAdmin svn@126.com ServerName svn.test.com <Location /svn> DAV svn SVNParentPath D:/svnhome SVNListParentPath off AuthType Basic AuthName "Subversion repositories" AuthUserFile D:\svnhome\svn\password AuthzSVNAccessFile D:\svnhome\svn\access Require valid-user #SVNPathAuthz on </Location> </VirtualHost>
<?xml version='1.0' encoding='utf-8'?> <Server port="8025" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <Listener className="org.apache.catalina.core.JasperListener" /> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> <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="8020" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Connector port="8029" protocol="AJP/1.3" redirectPort="8423" /> <Engine name="Catalina" defaultHost="localhost" jvmRoute="test2"> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8"> <Manager className="org.apache.catalina.ha.session.DeltaManager" expireSessionsOnShutdown="false" notifyListenersOnReplication="true" /> <Channel className="org.apache.catalina.tribes.group.GroupChannel"> <Membership className="org.apache.catalina.tribes.membership.McastService" address="228.0.0.4" port="45565" frequency="500" dropTime="3000" /> <Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver" address="auto" port="4001" autoBind="100" selectorTimeout="5000" maxThreads="6" /> <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender" /> </Sender> <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector" /> <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor" /> </Channel> <Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter="" /> <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve" /> <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer" tempDir="D:/DEVTOOLS/tomcatcus/tomcattwo/tmp/war-temp" deployDir="D:/DEVTOOLS/tomcatcus/tomcattwo/tmp/war-deploy/" watchDir="D:/DEVTOOLS/tomcatcus/tomcattwo/tmp/war-listen/" watchEnabled="false" /> <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener" /> <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener" /> </Cluster> <Realm className="org.apache.catalina.realm.LockOutRealm"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host> </Engine> </Service> </Server>