[Zope] Zope and Apache
Moore, Paul
Paul.Moore@atosorigin.com
Tue, 21 Jan 2003 14:28:10 -0000
From: Dieter Maurer [mailto:dieter@handshake.de]
> Moore, Paul wrote at 2003-1-20 11:57 -0000:
>
> > This is bound to be trivial. But I can't find an answer by
> > searching the Zope site, and the list search gave me no
> > obvious hits. So apologies if this is a FAQ - if it is, then
> > a pointer to the appropriate documentation would be much
> > appreciated.
> >
> > I am completely new to Zope - I've just installed it on my
> > machine to investigate it. I want to integrate the Zope site
> > into my existing Apache 2 setup. Looking at the Zope+Apache
> > HOWTO that I found, it seems that what I want is simply to
> > use ProxyPass, via
> >
> > ProxyPass /Zope http://localhost:8080/
> > ProxyPassReverse /Zope http://localhost:8080/
>
> Do not use "ProxyPass".
Can you explain why? The HOWTO I looked at
(http://www.zope.org/Members/regebro/Zope_and_Apache/)
specifically recommended this configuration for my requirement (I
just want to expose my Zope website as a directory in my Apache
website).
> Use RewriteRules ("mod_rewrite") with "P" flag in Apache and
> VHM in Zope.
Pretty much everything I saw on mod_rewrite also involved virtual
hosts (which I know little about, but am fairly sure I don't
want). And I couldn't see how to translate the instructions for
my simple case. If you can give me a bit more detail, that would
help.
To be absolutely specific, I have an Apache installation running
on my PC on port 80. So http://localhost/ (or http://ukdcw5163/
or http:/123.45.67.89/ or whatever) I also have Zope on
port 8080, and I'd like to be able to access the Zope site
starting at http://localhost/Zope (or http://ukdcw5163/Zope or
http:/123.45.67.89/Zope or whatever...)
As I understand virtual hosts, and rewrite rules, they work
based on the hostname used for access - as you can see, this is
precisely what I *don't* want.
Sorry to be pushy over this, but as well as wanting to be able
to do this for Zope, I want to understand *how* it is done. I'm
likely to be involved in an Apapche-based website which redirects
to various places in a similar way to this, at some point in the
not too distant future, and I'd like to get a head-start on the
principles...
As usual, references to good tutorial reading would be
appreciated.
Thanks again,
Paul.