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>


Tomcat is tacking on an extra "/" as it creates a 302 response for one of the Server Aliases, and not the other as in the curl output below, when the URI does not have a trailing "/".

The problem cropped up when all systems including the F5 load-balancer had to be rebooted after last weekend's storm.


-------------- Curl output for both virtual hosts:-------------
ldevm-shanti:~ shanti$ curl -v --dump-header headers_wwwprod.txt http://wwwprod.lsa.umich.edu/polisci
* About to connect() to wwwprod.lsa.umich.edu port 80 (#0)
*   Trying 141.211.177.191... connected
* Connected to wwwprod.lsa.umich.edu (141.211.177.191) port 80 (#0)
GET /polisci HTTP/1.1
User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3
Host: wwwprod.lsa.umich.edu
Accept: */*

< HTTP/1.1 302 Moved Temporarily
< Server: Apache-Coyote/1.1
< Location: http://wwwprod.lsa.umich.edu/polisci/
< Transfer-Encoding: chunked
< Date: Tue, 13 Sep 2011 20:28:29 GMT
<
* Connection #0 to host wwwprod.lsa.umich.edu left intact
* Closing connection #0
ldevm-shanti:~ shanti$ curl -v --dump-header headers_lsa.txt http://www.lsa.umich.edu/polisci
* About to connect() to www.lsa.umich.edu port 80 (#0)
*   Trying 141.211.177.203... connected
* Connected to www.lsa.umich.edu (141.211.177.203) port 80 (#0)
GET /polisci HTTP/1.1
User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3
Host: www.lsa.umich.edu
Accept: */*

< HTTP/1.1 302 Moved Temporarily
< Date: Tue, 13 Sep 2011 20:28:47 GMT
< Server: Apache-Coyote/1.1
< Location: http://www.lsa.umich.edu//polisci/
< Content-Length: 0
< X-Cnection: close
< Content-Type: text/plain; charset=UTF-8
< Set-Cookie: BIGipServerlsa-cmsproddlv_pool=3232879501.20480.0000; path=/
<
* Connection #0 to host www.lsa.umich.edu left intact
* Closing connection #0

---------------

Appreciate any thoughts.

Thanks!


--
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

Reply via email to