Yves Vindevogel wrote: > HELLO > > Anybody who can supply this rewrite rule ?
It is _not_ a rewrite rule that you need. It is a configuration for Tomcat. Probably goes somewhere in server.xml. I'm afraid a little Googling didn't find me an answer, so I suggest you go onto the Tomcat lists and ask: "I have a webapp (Cocoon) that is mounted to /cocoon. It creates session cookies, and these cookies are associated with the /cocoon path. I want to tell Tomcat to, when creating session cookies, to associate them with the / path so that when I use Apache proxying my sessions will survive. Presumably this requires a setting in server.xml. I know Jetty can do this. How do I do this in Tomcat?" HTH. Regards, Upayavira (Sorry away for weekend with no net-access) > > On 05 Nov 2005, at 14:13, Yves Vindevogel wrote: > > Hi Upayavira, > > Your nr 1 is not possible. That would be indeed be the easiest thing > to do, but then I have to run Cocoon as ROOT app under Tomcat. > I'd rather not do that. > > Number 2 is based on a document on Jetty, where they do the exact > same thing, but I can't figure out the code. I'm missing something > to get it working. > I'm not so familiar with it (seems to be regular expressions). I > found that document on the net, but I can't get it to do what I want. > > Yves > > > On 04 Nov 2005, at 16:52, Upayavira wrote: > > Yves Vindevogel wrote: > > Hi all, > > I have too little knowledge of Apache to set up a Rewrite > rule in order > that my session is stored in Tomcat when I don't have the > same folder > structure. > > My current virtual host is this: > > <VirtualHost *:80> > DocumentRoot /srv/apache2/htdocs/www.implements.be > ServerName www.implements.be > ErrorLog /srv/stats/www.implements.be/error.log > CustomLog /srv/stats/www.implements.be/access.log common > > ProxyPass /test/ http://127.0.0.1:8080/cocoon/test/ > ProxyPassReverse /test/ http://127.0.0.1:8080/cocoon/test/ > </VirtualHost> > > > What should I add to have my session working ? > I tried to add this > > RewriteEngine On > ProxyRequests Off > RewriteRule ^/([^/\.]+)$ $1/ [R] > > This does not help > > > You should either: > > 1) Make sure that your paths are the same, it'll make life much > easier > 2) Work out how to set the cookie path in Tomcat. I know you can > do it > in Jetty. Basically this says "have cookies stored relative to / > rather than relative to /cocoon, and is done within Tomcat. This > would solve your problem. > > If you work out how to do 2, why don't you stick it up on the wiki > somewhere. > > Regards, Upayavira > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > Met vriendelijke groeten, > Bien à vous, > Kind regards, > > *Yves Vindevogel* > *Implements* > > <Pasted Graphic 2.tiff> > > Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 > > Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 > > Web: http://www.implements.be > / > First they ignore you. Then they laugh at you. Then they fight you. > Then you win. > Mahatma Ghandi./ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Met vriendelijke groeten, > Bien à vous, > Kind regards, > > *Yves Vindevogel* > *Implements* > > > > Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 > > Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 > > Web: http://www.implements.be > / > First they ignore you. Then they laugh at you. Then they fight you. Then > you win. > Mahatma Ghandi./ > > > ------------------------------------------------------------------------ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
