Maria Jesus Turiel wrote:
>
> Hi,
>
> We've not yet this problem. It's not sure about the reason.
>
> We found that the process htcleancache doesn't stop when whe stop apache
> in that server.
>
> After to kill all repeated htcleancache process and stop and starts
> Apache2 and to verify there are an unique process htcleancache, it works
> fine.
>
> Thank you very much
>
>
Hi,
this problem is still in our system, Maria Jesus and me thought that this
solve but no.
We used the org.apache.cocoon.environment.Session to put a user object when
a user login in the aplication.
Then we used XPathMetaModule to get user.name in our pipeline and print the
name in the presentation layer.
If we don't use the apache2 this run Ok but when use apache with mod_cache,
mod_proxy and mod_rewrite the server give us a response with a set-cookie in
headers and some times the name of other user appear in the session of a
user.
We think that the problem is that mod_cache is caching http headers with
cookies and after server this pages with this cookies to someone. Studing
apache2 in more detail found that we can use CacheIgnoreHeaders set-Cookie
directive to avoid the cache save the cookie but this seem not work in the
version 2.2.11 of apache2( or maybe we don know how use it).
This is the code for our virtual host:
<VirtualHost *:80>
#solo si el sitio requiere autentificacion
ServerAdmin [email protected]
ServerName www.turismopaco.com
ServerAlias lenya
CacheRoot /var/cache/apache2/mod_disk_cache
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
CacheIgnoreHeaders Set-Cookie
ProxyRequests Off
RewriteEngine On
#Debug en dev
RewriteLogLevel 3
RewriteLog "/var/cache/apache2/rewrite.log"
#Directorio exporta para videos, descargas,...
RewriteRule ^/export/.*$ /home/paco/pinturex/export/$1
# Se mapean las partes que no son especificas de la publicacion
RewriteRule ^/lenya/(.*) http://www.turismopaco.com:8888/lenya/$1
[P,L]
RewriteRule ^/modules/(.*)
http://www.turismopaco.com:8888/modules/$1 [P,L]
RewriteRule ^/PINTUREX/modules/(.*)
http://www.turismopaco.com:8888/PINTUREX/modules/$1 [P,L]
RewriteRule ^/PINTUREX/resources/(.*)
http://www.turismopaco.com:8888/PINTUREX/resources/$1 [P,L]
#Se realiza un mapeo especifico a la zona de galeria de imagenes
(exclusivamente)
RewriteRule ^/PINTUREX/authoring/galeriaimagenes/(.*)
http://www.turismopaco.com:8888/PINTUREX/authoring/galeriaimagenes/$1 [P,L]
# Se mapea el entorno live
RewriteRule ^/([^/\.]+)$ $1/ [R]
RewriteRule ^/PINTUREX/live/(.*)
http://www.turismopaco.com:8888/PINTUREX/live/$1 [P,L]
RewriteRule ^/captcha\.jpg
http://www.turismopaco.com:8888/captcha.jpg [P,L]
RewriteRule ^/(.*) http://www.turismopaco.com:8888/PINTUREX/live/$1
[P,L]
ProxyPassReverse / http://www.turismopaco.com:8888/PINTUREX/live/
</VirtualHost>
Our page in production is www.turismoextremadura.com, if use tamper data you
can see that the response headers have a set-cookie parameter and this is
send to the client which change his jSession and for this the user object in
the org.apache.cocoon.environment.Session is lost.
Any idea what happened!
TIA!
--
View this message in context:
http://www.nabble.com/web.xml-in-ProxyPass-tp23096663p23382128.html
Sent from the Lenya - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]