各位好,帮忙处理下面的问题呀,
apache2.2+tomcat6.0 集群,登录不了,应该是session不能共享。
apache 配置:
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from all
</Location>
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from all
</Location>
ProxyRequests Off
ProxyPass / balancer://tomcatcluster/ stickysession=jsessionid nofailover=On
ProxyPass /MobileBusiness http://localhost:80/MobileBusiness/
ProxyPassReverse / balancer://tomcatcluster/
ProxyPassReverse /ccas balancer://tomcatcluster/ccas/
ProxyPassReverse /clpay balancer://tomcatcluster/clpay/
<proxy balancer://tomcatcluster>
BalancerMember ajp://127.0.0.1:8011 loadfactor=1 route=tomcat1
#BalancerMember ajp://192.168.1.104:8012 loadfactor=1 route=tomcat2
BalancerMember ajp://127.0.0.1:8013 loadfactor=1 route=tomcat3
</proxy>
<VirtualHost *:80>
ServerAdmin xiangdingyou2008@163.com
ServerName localhost
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
ProxyPass / balancer://cluster/ stickysession=jsessionid nofailover=On
ProxyPassReverse / balancer://cluster/
</VirtualHost>
tomcat 配置:
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">
<Manager className="org.apache.catalina.ha.session.BackupManager"
expireSessionsOnShutdown="false"
notifyListenersOnReplication="true"
mapSendOptions="6"/>
<!-- <Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false"
mapSendOptions="6"
notifyListenersOnReplication="true"/> -->
<Channel className="org.apache.catalina.tribes.group.GroupChannel">
<Membership className="org.apache.catalina.tribes.membership.McastService"
bind="127.0.0.1"
address="228.0.0.4"
port="45564"
frequency="500"
dropTime="3000"/>
<Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"
address="auto"
port="4001"
autoBind="100"
selectorTimeout="5000"
maxThreads="6"/>
<!--<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"