[Zope] Zope (ZServer) in parallel with Apache

Mike Renfro renfro@tntech.edu
Sat, 26 May 2001 15:38:34 -0500


On Sat, May 26, 2001 at 01:56:07PM -0400, Chris Ryland wrote:

> Or can I use clever rewriting rules to have *everything else* go to special
> places (like https:/store go to normal Apache (SSL) places, /mailman go to
> the usual mailman, and everything else go directly to Zope without a prefix?

I'm doing exactly this on my server. 3 sites currently served from
Zope, with Apache and modproxy in front of it. VirtualHostMonster is
running in the root of the Zope tree, too. The relevant portions of
the httpd.conf:

<VirtualHost www.cae.tntech.edu>
  ServerName www.cae.tntech.edu
  DocumentRoot /var/www
  Alias /spong/rrd /var/lib/spong/rrd/www/
  Alias /spong /usr/share/spong/www/

  <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteLog "/var/log/apache/rewrite_log"
    RewriteLogLevel 1
    RewriteRule ^/local/ - [L]
    RewriteRule ^/(.*) http://ch208h.cae.tntech.edu:9673/VirtualHostBase/http/ww
w.cae.tntech.edu:80/CAE/VirtualHostRoot/$1 [e=HTTP_CGI_AUTHORIZATION:%1,P]
  </IfModule>
</VirtualHost>

All content under /local is served by apache, from its normal document
root. Everything else is served from Zope (i.e.,
http://www.cae.tntech.edu/ is a Zope page). I'm going to have to write
this up in excruciating detail now.

-- 
Mike Renfro  / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- renfro@tntech.edu