Getting Zope to work with Apache...

Donn Shumway donn@linuxfan.com
Wed, 24 May 2000 14:37:20 -0700


What I did was to follow the advice of Stuart Foster (Jiva referred me to
him) and went to http://www.zope.com/Members/anser/apache_zserver  where it
describes how to imbed Zserver behind Apache. That is, they coexist, Apache
passes all requests for Zope content to Zserver using an 'inverse proxy'
with the 'ProxyPass' directive and Zserver then passes all response back to
Apache using 'ProxyPassReverse' directive in Apache. A few lingering
problems are cleaned up using the SiteAccess product from the Zope download
site and it works like a charm. I get the best of both worlds, Apache is
still Apache and Zserver handles all Zope content.

Apparently you can have Zserver running on another machine in cooperation
with an Apache named virtual host and this will also work very well. This is
an elegant solution and better than I thought was possible.

I have both running and have learned a lot already.

Thanks again Jiva and Stuart.
Donn

----- Original Message -----
From: "Lucas Vogel" <lvogel@exponent.com>
To: "'Donn Shumway '" <dshumway@speedchoice.com>
Sent: Tuesday, May 23, 2000 10:07 PM
Subject: RE: Getting Zope to work with Apache...


> Let me take a stab at this...
>
> When I first tried installing Zope I had a hard time with the rpm's, so I
> downloaded and installed from the .tar file instead. This worked out a lot
> easier for me, because of Zope's best documentation - this installation
> HOWTO:
>
> http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO
>
> I, like you, also wanted to integrate Zope with Apache, so that I could
> utilize and learn both of them properly(and justify my wife the purchase
of
> the Apache Administrator's Handbook that I bought). I downloaded,
installed,
> and incorporated FastCGI into my Apache installation. But I could never
get
> it to work. I gave Zap a half-assed try, but it seemed a little
complicated.
> There is also a technique where you can use Zope as some kind of CGI app,
> but I've never tried it because zope by itself is really cool. The only
> thing I could successfully get Apache to do was forward my domain name to
my
> zope server so I didn't have to type in :8080 every time.
>
> I don't know what you're trying to do as far as authentication; do you
want
> Apache to handle all web documents or do you want Zope to? Methinks you
can
> switch back and forth between the two at the same time but not use them
> simultaneously(an apache-served document with zope content in it).
>
> My humble recommendations are these:
> 1. Read the HOWTO's at http://www.zope.org/ ; there are a lot of
> relevant articles on using Zope with Apache(and also with MacOS and IIS as
> well). Chances are someone there has written out a document that will help
> you find some answers.
> 2. Run Zope by itself, at least for a little while. Play with it.
> Install some products for it. Build a mini-app or two. Then think about
what
> you want Apache to do with it.
>
>
> HTH
>
> -----Original Message-----
> From: Donn Shumway
> To: plug-discuss@lists.PLUG.phoenix.az.us
> Sent: 5/21/00 6:29 PM
> Subject: Getting Zope to work with Apache...
>
> Hello all. I am fairly new to Apache and just trying to install Zope to
> see what all the positive comments are about. I am using Mandrake v7,
> and because of the Red Hat heritage, have stuck with the RPM package
> installs (just to let you know that I tried to use the RPM whenever
> possible to avoid conflicts with the RedHat directory structure.
> I am trying to get Zope to cooperate with Apache v1.3.12 and pass
> authentication back properly but have not been able to. I have applied
> the recommended changes to httpd.conf per the instructions at
> http://starship.python.net/crew/jrush/Zope/Zope216.html for Zope
> configuration using Apache as listener after installing Zope 2.1.6 RPM
> with the Zope-pcgi RPM.
>
> I even downloaded Zap and mimicked it's conf file but that did not solve
> the problem. I really want to run Apache, not just Zap, so I can learn
> it as
> well.
>
> Apache is apparently not passing authentication properly. I am at a loss
> as to what I should try next. Does anyone have any suggestions? Attached
> is the new section of the httpd.conf file (with some commented sections
> that did not work...
>
>
> ******
> Include /etc/httpd/conf/addon-modules/mod_perl.conf
> Include conf/addon-modules/mod_fastcgi.conf
> <IfModule mod_jserv.c>
>      Include /etc/httpd/conf/jserv/jserv.conf
> </IfModule>
>
> ##############################
> #Zope added section# DS - 05/12/00#
> ##############################
> #Added per the instructions at
> #http://starship.python.net/crew/jrush/Zope/Zope216.html
> #intended for Zope configuration using Apache as listener
> #after installing Zope 2.1.6 RPM with the Zope-pcgi RPM
>
> #Added from Zap.conf file##########
> RewriteEngine on
> RewriteLog logs/zap_rewrite_log
> RewriteLogLevel 0
>
> RewriteCond %(HTTP:Authorization)  ^(.*)
> #RewriteRule ^/Zope(.*) ../Zope.cgi$1
> [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
> #End Zap.conf###################
>
> ##This section from
> http://starship.python.net/crew/jrush/Zope/Zope216.html
>
> #RewriteRule ^/cgi-bin - <a href="#1">[1]</a>
> #RewriteRule ^/static/(.*)  /home/httpd/html/$1 [l]
> #RewriteRule ^/cgi-bin/(.*)  /home/httpd/cgi-bin/$1
> [e=HTTP_CGI_AUTHORIZATION:%1,t=applicaton/x-httpd-cgi,l]
>
> RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope/$1
> [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
>
>
> ******
> Zope attempts to load but the login will not authenticate. I have tried
> running:
>
> 'zpasswd --username=superuser --password=******
> --domain=redrock.home.cxm
> access'
>
> but no luck completing the authentication.
>
> Any suggestions would be greatly appreciated.
>
> Thanks,
> Donn
>
>
>
> _______________________________________________
> Plug-discuss mailing list  -  Plug-discuss@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>