cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alain Javier Guarnieri del Gesu <javi-coc...@ajgdg.com>
Subject Re: Load Balancing web applications with mod_proxy...
Date Sun, 07 Dec 2003 17:03:51 GMT
* Pier Fumagalli <pier@betaversion.org> [2003-12-07 13:56]:
> On 6 Dec 2003, at 01:22, Alain Javier Guarnieri del Gesu wrote:
> 
> >* Tony Collen <colle006@umn.edu> [2003-12-04 15:56]:
> >>Pier Fumagalli wrote:
> >>
> >>>On 4 Dec 2003, at 00:57, Tony Collen wrote:
> >>>
> >>>>It's easy: for each vhost, create whatever subsitemaps you want in
> >>>>Cocoon, then in each vhost config in httpd.conf, do something like:
> >>>>
> >>>>-------------------------------
> >>>><VirtualHost 111.222.333.444>
> >>>> ServerName    example.com
> >>>> ServerAlias   www.example.com
> >>>> ServerAdmin   root@example.com
> >>>> DocumentRoot  /usr/local/vhosts/example.com
> >>>>
> >>>> ProxyPass             /static/ !
> >>>> ProxyPass             / http://localhost:8888/cocoon/example/
> >>>> ProxyPassReverse      / http://localhost:8888/cocoon/example/
> >>>></VirtualHost>
> >>>>-------------------------------
> >>>>
> >>>>I'm using this on openWeather.com and it works perfectly.  My dream 
> >>>>is
> >>>>to have all of my virtualhosts hosted this way, but that might never
> >>>>happen :^)

> >>>Are you sure that cookie-based sessions will actually work? :-)

> >>Hmm, not sure.  Perhaps I should have said, "it works for what I 
> >>need"..

> >>Who needs cookies anyway?  :)
> >
> >Cookies will work. So will SSL.

> No they won't when those are created by sessions. The servlet Container 
> will set a cookie for the "/cocoon/" path... Since the web application 
> is proxied to "/" instead of "/cocoon/" the browser WILL NOT pass back 
> the session ID to the server...

That's bad.

There is a note here:

http://cocoon.apache.org/2.1/faq/faq-configure-environment.html#faq-N10005

...about setting cocoon to ROOT, and a very helpful Wiki entry:

http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy

Would it be possible to write an Apache module that could translate a Jetty
servlet session cookie?

-- 
Alain Javier Guarnieri del Gesu - javi@ajgdg.com

Mime
View raw message