Hi i have a problem that is driving me crazy.
My environment is the following in my Winndows 7 local machine. (vaadin server 7.5.7)
Apache 2.4 web server wit mod proxy with mod_proxy balancer configured.
Two tomcat version 8 beside Apache running ok
i added the following lines in my Apache httpd config file described below
<VirtualHost *:80>
ServerName localhost
ProxyRequests off
<Proxy balancer://mycluster>
BalancerMember ajp://localhost:8109 keepalive=On ttl=60 retry=1 timeout=1 ping=1
<Proxy balancer://mycluster2>
BalancerMember ajp://localhost:8109 loadfactor=1 keepalive=On ttl=60 retry=1 timeout=1 ping=1 route=server1
BalancerMember ajp://localhost:8209 loadfactor=1 keepalive=On ttl=60 retry=1 timeout=1 ping=1 route=server2
<Proxy *>
Order deny,allow
Allow from all
# Passes thru track. or api.
ProxyPreserveHost On
ProxyStatus On
App Definitions
ProxyPass /Vadin02 balancer://mycluster2/Vadin02
ProxyPassReverse /Vadin02 balancer://mycluster2/Vadin02
ProxyPass /examples balancer://mycluster2/examples/
ProxyPassReverseCookiePath /Vadin02 /
as you can see i have defined two balancer (mycluster and my cluster2) mycluster1 points to one Tomcat1 and mycluster2 points to tomcat1 and tomcat2
The applications that i have defined are Vadin02 (the sample app with a click button generated with vaadin an the other one is the examples app loaded in tomcat 8 installation.
from my browser i can run localhost/examples/ and is OK the tomcat app work ok
from my browser i can run localhost/Vadin02/ and also works ok…
But…if i change my apache config to use only one balancer , tomcat app works ok but vaadin app sow message session expired…
<VirtualHost *:80>
ServerName localhost
ProxyRequests off
<Proxy balancer://mycluster>
BalancerMember ajp://localhost:8109 loadfactor=1 keepalive=On ttl=60 retry=1 timeout=1 ping=1 route=server1
BalancerMember ajp://localhost:8209 loadfactor=1 keepalive=On ttl=60 retry=1 timeout=1 ping=1 route=server2
<Proxy *>
Order deny,allow
Allow from all
# Passes thru track. or api.
ProxyPreserveHost On
ProxyStatus On
App Definitions
ProxyPass /Vadin02 balancer://mycluster/Vadin02
ProxyPassReverse /Vadin02 balancer://mycluster2/Vadin02
ProxyPassReverseCookiePath /Vadin02 /
ProxyPass /examples balancer://mycluster2/examples/a
So…what can i do ? any ideas?
Thanks in advance