[Zope] Apache? Proxy? PCGI? ZServer?

Jochen Haeberle listen@MIDRAS.de
Fri, 18 Feb 2000 10:22:41 +0100


At 13:23 Uhr -0600 17.02.2000, Evan Simpson wrote:
>----- Original Message -----
>From: J. Atwood <Jatwood@bwanazulia.com>
>  > 2) ZServer Behind Apache + Proxy - This is the second fastest and is
>  > relatively easy (have done it once). I get my Apache logs, SSL (I think)
>but
>  > It require SiteAcesss product which could (and seems to) conflict with
>other
>  > products/functionality.
>
>Not *too* much, I hope.  The only "conflict" which I am certain still exists
>in v1.0.0 is between virtual hosts trying to access the same ZCatalog.

Mhmm, I guess there are quite some possibilities to break the virtual
hosting done by SiteAccess (the proxypass solution as to the HowTo by
anser <http://www.zope.org/Members/anser/apache_zserver/index_html>)

ZPhotoAlbum for example uses an index_html method to redirect users
to the correct page and this renders the path based on the PATH_INFO,
which does not seem to be modified by SiteAccess

like this

   <dtml-call "REQUEST.set('to_url', _.string.split(PATH_INFO, album_id, 1))">

   <dtml-if "REQUEST.cookies.has_key('pv')">
     <dtml-call "REQUEST.set('to_url', '%s%s%s/%s/%s%s' % (SERVER_URL, 
to_url[0], album_id, REQUEST.cookies['pv'], album_id, to_url[1]))">
   <dtml-else>
     <dtml-call "REQUEST.set('to_url', '%s%s%s/%s/%s%s' % (SERVER_URL, 
to_url[0], album_id, 'simple', album_id, to_url[1]))">
   </dtml-if>

   <p>Please <a href="&dtml-to_url;">continue</a>.</p>

   <dtml-call "RESPONSE.redirect(to_url)">

After this, you end up with a location field that does not represent
the VHost, but VHost-based links, the pages break.

Jochen