cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yves Vindevogel <yves.vindevo...@implements.be>
Subject Re: Proxy Rewrite
Date Mon, 07 Nov 2005 08:44:16 GMT
HELLO

Anybody who can supply this rewrite rule ?

Tia


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: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>
> Met vriendelijke groeten,
> Bien à vous,
> Kind regards,
>
> Yves Vindevogel
> Implements
>
> <Pasted Graphic 2.tiff>
>
> Mail: yves.vindevogel@implements.be  - 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements


Mime
View raw message