Hi all,
I traced the problem to a missing "ProxyPreserveHost On" directive on
the LSA and the II VirtualHosts. I added the missing directive, and
things are working fine.
Apache documentation says:
------------
When enabled, this option will pass the Host: line from the incoming
request to the proxied host, instead of the hostname specified in the
proxypass line.
This option should normally be turned Off. It is mostly useful in
special configurations like proxied mass name-based virtual hosting,
where the original Host header needs to be evaluated by the backend
server.
------------
In our case, we are doing mass name-based virtual hosting and were
missing this directive.
Thanks.
-Shanti
Quoting Shanti Suresh <sha...@umich.edu>:
Hi Konstantin,
Our Balancer is setup as follows:
<Proxy balancer://dsmdelivery>
BalancerMember http://lsa-cmsproddlv1.lsa.umich.edu:8080 retry=2
BalancerMember http://lsa-cmsproddlv2.lsa.umich.edu:8080 retry=2 status=+H
ProxySet stickysession=JSESSIONID|jsessionid
</Proxy>
Yes, it worked as-is before.
The funny thing is that both server names on the same VirtualHost
are serviced identically by the same Tomcat engines, yet with a
different outgoing 302. I also notice that the correct
(single-slash) 302 has "Transfer-Encoding: Chunked", while the "//"
302 has a "Content-Length:0" header as one of the main differences.
The F5 load-balancer Cookie may be ignored in the
"www.lsa.umich.edu" case.
I appreciate your questions and thoughts.
Thanks!
-Shanti
Quoting Konstantin Kolinko <knst.koli...@gmail.com>:
2011/9/14 Shanti Suresh <sha...@umich.edu>:
All,
We are running into a peculiar issue. We have Tomcat 6.0.24
front-ended by
Apache2.2.3. We have a VirtuslHost serving port 80 where Apache simply
hands off "/" to Tomcat's load-balancer.
<VirtualHost *:80>
ServerName wwwprod.lsa.umich.edu
ServerAlias wwwprod www www.lsa.umich.edu
Redirect / balancer://dsmdelivery/
ProxyPass / balancer://dsmdelivery/
ProxyPassReverse / balancer://dsmdelivery/
TraceEnable Off
</VirtualHost>
The examples in [1] do not have trailing "/" neither in <Proxy>
element nor in ProxyPass setting, while [2] has one such example
(search for "A sample balancer setup").
[1] http://httpd.apache.org/docs/2.1/mod/mod_proxy_balancer.html
[2] http://httpd.apache.org/docs/2.1/mod/mod_proxy.html#proxypass
So, how is your <Proxy> element configured?
The problem cropped up when all systems including the F5 load-balancer
had to be rebooted after last weekend's storm.
So it did work before?
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
--
Shanti Suresh
LSA Development
500 S. State Street
Ann Arbor MI 48109-1382
Office: 734-763-4807
sha...@umich.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
!DSPAM:4e715c9d273571336712104!
--
Shanti Suresh
LSA Development
500 S. State Street
Ann Arbor MI 48109-1382
Office: 734-763-4807
sha...@umich.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org