tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liam Morley <lmor...@lovecraft.gdc.wpi.edu>
Subject JSESSIONID disappearing when doing special mod_rewite commands?
Date Sun, 21 Apr 2002 14:12:26 GMT
After looking through the Apache documentation on mod_rewrite and
mod_proxy, I have tried the following:
RewriteRule ^/cocoon/(.*)$ http://localhost:8080/cocoon/$1 [P,L]
ProxyPassReverse  /cocoon/ http://localhost:8080/cocoon/

That was successful. When I tried shortening this a bit to the following,
tomcat session IDs stopped getting through:
RewriteRule ^/(.*)$ http://localhost:8080/cocoon/myapp/$1 [P,L]
ProxyPassReverse  / http://localhost:8080/cocoon/myapp/

'cocoon' being a webapp (xml.apache.org/cocoon/) and 'myapp' being a
subproject of that.

What am I missing? I've also added the following, although I don't believe
it has anything to do with my problem:
RewriteRule /(static)|(icon)/.* - [L]

For reference, here are the original request parameters being sent:

PARAM: 'cookie' VALUES: '[JSESSIONID=A897E11152D430961782D5C9D9E67211;
CMSUSER=mMsjah1coqlTGONdauaj1HrXi%2Fi2nT0lSZBixdwP%2BwQ%3D]'
PARAM: 'connection' VALUES: '[Keep-Alive]'
PARAM: 'accept-encoding' VALUES: '[gzip, deflate]'
PARAM: 'referer' VALUES: '[http://localhost/cocoon/cms/info/mission.html]'
PARAM: 'accept' VALUES: '[image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*]'
PARAM: 'accept-language' VALUES: '[en-us]'
PARAM: 'user-agent' VALUES: '[Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; Q312461)]'
PARAM: 'host' VALUES: '[localhost]'

And here are the parameters when shortening the URL with mod_rewrite:

PARAM: 'cookie' VALUES:
'[CMSUSER=mMsjah1coqlTGONdauaj1HrXi%2Fi2nT0lSZBixdwP%2BwQ%3D]'
PARAM: 'connection' VALUES: '[Keep-Alive]'
PARAM: 'accept-encoding' VALUES: '[gzip, deflate]'
PARAM: 'referer' VALUES: '[http://localhost/cms/news/news_story_1.html]'
PARAM: 'accept' VALUES: '[*/*]'
PARAM: 'accept-language' VALUES: '[en-us]'
PARAM: 'user-agent' VALUES: '[Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; Q312461)]'
PARAM: 'host' VALUES: '[localhost]'

Clearly the tomcat session is gone. Any help would be GREATLY appreciated,
as I'm not sure what else to do.

Liam Morley


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message