HiI have two applications running in a tomcat instance, I use apaches mod proxy to forward to them accordingly. However I have trouble getting a share cookie to be visible in each application. Since cookies need to be on the same path and domain. Currently no cookies are going out to the browser from apache2 http.
I've been following this example: http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse | ProxyPass /mirror/foo/ http://backend.example.com/ ProxyPassReverse /mirror/foo/ http://backend.example.com/ ProxyPassReverseCookieDomain backend.example.com public.example.com ProxyPassReverseCookiePath / /mirror/foo/|I've defined two virtual hosts like this, trying to follow the above example but cant figure it:
NameVirtualHost * <VirtualHost *:* > ServerName beta.domain.dk ServerAlias *.beta.domain.dk ServerAlias *.beta.domain.cx ServerAlias beta.domain.ath.cx ServerAdmin admin@xxxxxxxxx ProxyPass /images http://10.0.0.2:8180/appA/images ProxyPass / http://10.0.0.2:8180/appA/ ProxyPassReverse / http://10.0.0.2:8180/appA/
ProxyPassReverseCookiePath /appA /| ProxyPassReverseCookieDomain appA beta.domain.dk| <Proxy *> Order deny,allow Allow from all </Proxy> </VirtualHost> <VirtualHost *:* > ServerName forum.domain.dk ServerAlias *.forum.domain.dk ServerAlias *.forum.domain.ath.cx ServerAlias forum.domain.ath.cx ServerAdmin email@xxxxxxxxx ProxyPass /jforum-2.1.8/templates/default/images/ http://10.0.0.2:8180/jforum-2.1.8/templates/default/images/ ProxyPass /jforum-2.1.8/templates/default/styles/ http://10.0.0.2:8180/jforum-2.1.8/templates/default/styles/ ProxyPass /jforum-2.1.8/ http://10.0.0.2:8180/jforum-2.1.8/ ProxyPass / http://10.0.0.2:8180/AppB/ ProxyPassReverse / http://10.0.0.2:8180/AppB/
ProxyPassReverseCookiePath /AppB /| ProxyPassReverseCookieDomain appB beta.domain.dk| <Proxy *> Order deny,allow Allow from all </Proxy> </VirtualHost>
-- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx