I'm running Cocoon2 on top of Tomcat. I've been using mod_rewrite to rewrite URLs so that tomcat is invisible to the end user (ie, they don't see port 8080 in the url... and it doesn't appear that they are on a different server than the server that runs everything else through apache).
This works just fine:
However, what I want to do is rewrite it so my application (in the "cms" directory underneath tomcat) is shown under the root '/' path. So I tried the following:
When I tried that, Tomcat's JSESSIONID cookie (the cookie that Tomcat uses to take care of sessions) didn't seem to be getting passed. I have NO idea why I'm not seeing this, nor am I sure where the problem is (my application, Cocoon, Tomcat, Apache, mod_rewrite, or mod_proxy).. and I have NO idea where to look.
My best guess is that the cookie has a certain path, and because the URL doesn't have that path, the cookie doesn't get sent. But because it's a non-persistent session cookie, I'm not sure how to look at the cookie to see what the path is. If anybody else has any guesses, I'd really like to know.. this problem has been bothering me for months now, and it's really important that I figure out how to fix this ASAP. I've also tried mod_webapp, with the same effect... currently trying to obtain the mod_jk jar to try the JK connector. Liam Morley
lmorley@gdc.wpi.edu
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."
This works just fine:
Code:
RewriteRule ^/cocoon/(.*)$ [URL unfurl="true"]http://localhost:8080/cocoon/$1[/URL] [P,L]
ProxyPassReverse /cocoon/ [URL unfurl="true"]http://localhost:8080/cocoon/[/URL]
However, what I want to do is rewrite it so my application (in the "cms" directory underneath tomcat) is shown under the root '/' path. So I tried the following:
Code:
RewriteRule ^/(.*)$ [URL unfurl="true"]http://localhost:8080/cocoon/cms/$1[/URL] [P,L]
ProxyPassReverse / [URL unfurl="true"]http://localhost:8080/cocoon/cms/[/URL]
When I tried that, Tomcat's JSESSIONID cookie (the cookie that Tomcat uses to take care of sessions) didn't seem to be getting passed. I have NO idea why I'm not seeing this, nor am I sure where the problem is (my application, Cocoon, Tomcat, Apache, mod_rewrite, or mod_proxy).. and I have NO idea where to look.
My best guess is that the cookie has a certain path, and because the URL doesn't have that path, the cookie doesn't get sent. But because it's a non-persistent session cookie, I'm not sure how to look at the cookie to see what the path is. If anybody else has any guesses, I'd really like to know.. this problem has been bothering me for months now, and it's really important that I figure out how to fix this ASAP. I've also tried mod_webapp, with the same effect... currently trying to obtain the mod_jk jar to try the JK connector. Liam Morley
lmorley@gdc.wpi.edu
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."