[Zope] httpd.conf Zope on Apache-based ISP

Troy Farrell troy at entheossoft.com
Wed Feb 25 20:41:39 EST 2004

I have a site (studyshare.net) which is served from Zope's
/sites/studyshare_net/ folder.  Zope is running on localhost port 8085. 
There is a Virtual Host Monster in the Zope Root and I use this rewrite

RewriteRule ^/(.*)$1

The big difference here is that I am using apache as a proxy in front of
Zope.  It looks like you're trying to use PCGI.  Since this RewriteRule
grabs all requests, it needs to be last.


> Hi all,
> I'm putting a Zope site on an Apache based hosting service.  They've
> asked me to suggest the virtual hosts section of httpd.conf and for me
> to run Zope on 8081 to avoid conflicts.  The files are in a folder
> called /websites/patrkirk/public_html/ with a cgi folder called
> /websites/patrkirk/public_html/cgi_bin/
> It seems that there are very many ways of doing this and I'm at a loss
> how to choose the right way.
> Can anyone suggest an authoritative URL that simply allows zope to run
> on some high number port with Apache serving up its pages?  I have no
> access to Apache so extensive re-writes of httpd.conf are unlikely to be
> accepted by the ISP.
> This is my first draft.
> # Zope redirection
> <IfModule mod_rewrite.c>
>    RewriteEngine on
>    RewriteCond %{HTTP:Authorization}  ^(.*)
>    RewriteRule ^/Zope/(.*) /var/lib/zope/cgi-bin/default/$1
> [t=application/x-httpd-cgi,l]
> </IfModule>
> <VirtualHost>
>    ServerName  www.enterprise-hr.com
>    DocumentRoot /websites/patrkirk/public_html/zope
>    RewriteEngine on
>    RewriteRule ^/(.*) /var/lib/zope/cgi-bin/default/$1
> [t=application/x-httpd-cgi,l]
> </VirtualHost>
> Does this look right and if not can someone please tell me what I need
> to do?
> Thanks in advance.

More information about the Zope mailing list