Woops! forgot to reply to all on this one
Date: Mon, 09 Apr 2001 09:25:32 -0400
To: <patrick@spice.eahd.or.ug>
From: Sherwood Robinson <srobinson@fredericksburg.com>
Subject: RE: [Zope] Apache virtual host combined with Zope
Here is how I would handle this with proxypass:
In Virtualhost for hostone:
ProxyPass/ http://my.ip.he.re:8080/hostone/
ProxyPassReverse/ http://my.ip.he.re:8080/hostone/
ProxyPass/misc_ http://my.ip.he.re:8080//misc_
ProxyPass/p_ http://my.ip.he.re:8080//p_
in Virtualhost for hosttwo
ProxyPass/ http://my.ip.he.re:8080/hosttwo/
ProxyPassReverse/ http://my.ip.he.re:8080/hosttwo/
ProxyPass/misc_ http://my.ip.he.re:8080//misc_
ProxyPass/p_ http://my.ip.he.re:8080//p_
Now in zope manage goto your hostone folder and add the siteroot like this
Base: www.hostone.com
Path: /
In Zope manage goto your hosttwo folder and add the siteroot
Base: www.hosttwo.com
path: /
Should do the trick... just remember if you want to manage anything in the root folder of your zope install you will need to use
http://my.ip.here:8080/manage
Hope this helps
At 01:18 PM 4/7/2001 +0300, you wrote:
A related question; what if I want two virtual hosts...
www.hostone.com and
www.hosttwo.org
And in my zope installation I want to have this sort of folder
organisation:
root|
|->hostone
|->hosttwo
and I want zope to serve www.hostone.com from hostone and www.hosttwo.org
from hosttwo.
I tried a proxy pass for
www.hostone.com to http://my.ip.he.re:8080/
and another for
www.hosttwo.org to http://my.ip.he.re:8080/
and two site roots in my zope installation;
In hostone:
baseurl=http://www.hostone.com
path=/
In hosttwo
baseurl=http://www.hosttwo.org
path=/
The problem is that when I did that, I could not get to any management
screen; in short my zope just died and I had to reinstall; How should I
have gone about this?
Thanks.
On Fri, 6 Apr 2001, Oleg Broytmann wrote:
> On Fri, 6 Apr 2001, Timothy Wilson wrote:
> > On Fri, 6 Apr 2001, Oleg Broytmann wrote:
> > > Ah, so your problem is different from what I though. I thought you want to
> > > serve some dirs from Apache, and some from Zope.
> >
> > Oleg,
> >
> > What you're talking about *is* what I want to do. But i haven't been able to
> > figure out for sure what I need to do. Let me give you an example...
> >
> > On Debian, my root for html document is /var/www. I can use a virtual host
> > entry in my apache config and ProxyPass to direct all requests for spam.org
> > to spam.org:8080. No problem there. Let's say, however, that I have a
> > /var/www/eggs directory that I would like served by apache. Can ProxyPass do
> > that by itself.
> >
> > In other words,
> >
> > www.spam.org should come from Zope at spam.org:8080
> > www.spam.org/eggs should come from Apache (/var/www/eggs)
> >
> > Do I need a Rewrite rule?
>
> No. Use <Location> inside your <VirtualServer>:
>
> <Location /egg>
> ProxyPass ...
> </Location>
>
> Thus some parts of the virtual server will be served from as usual, and
> some (started with /egg) will be served by different rules.
>
> Oleg.
> ----
> Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru
> Programmers don't die, they just GOSUB without RETURN.
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )----------------------------------------------------
Sherwood Robinson
Hostmaster
The Free Lance-Star/Internet Department
srobinson@fredericksburg.com
http://www.fredericksburg.com
616 Amelia St.
Fredericksburg, VA 22401
540-374-5000 ext. 5657