So you've got your Apache server serving up static HTMLcontent, and you've got some cool new Zope applications as well. Now, incase you were wondering, it is possible for the twain to meet - and thisarticle tells you how, with a step-by-step guide to the process ofserving up your Zope content through Apache.
There are a number of different ways to get Apache working with Zope -however, all of them rely on using CGI to pass Apache requests to Zopefor processing. The first of these involves using persistent CGI, orPCGI.
When Zope is first installed, a file named "Zope.cgi" is created in theZope installation directory. This is the file you will need in order toserve up Zope data via Apache. Copy this file to your Apache server's"cgi-bin" directory, and set its ownership and permissionsappropriately.
Next, start Zope with the "-p" command-line parameter (this tells Zopeto use PCGI).
$ cd /usr/local/Zope
$ ./bin/python z2.py -p /usr/local/apache/cgi-bin/Zope.cgi
Zope should now start up. Verify that it is running by browsing to theURL http://your.server:8080/ and the URL http://your.server:8080/manage/(for the management interface)
Next, start up Apache.
$ /usr/local/apache/bin/apachectl start
You should now be able to access the Zope pages through CGI, by browsingto the URL http://your.server/cgi-bin/Zope.cgi - in other words,accessing Zope content via Apache.