[Zope] VHM & Squid Problems

Gilles Lenfant gilles@pilotsystems.net
Mon, 19 Aug 2002 11:29:50 +0200


----- Original Message -----=20
From: "Dennis Allison" <allison@sumeru.stanford.EDU>
To: <zope@zope.org>
Sent: Monday, August 19, 2002 2:40 AM
Subject: [Zope] VHM & Squid Problems


> I have partitioned my server into a collection of sites using the VHM
> and Squid and a custom URL rewriter.
>=20
> At the hightest level I have
>=20
> the_net <=3D> SQUID <=3D> Zope
>=20
> The Zope space is split into a few sites which are independent
>=20
> SQUID  <=3D> (site a)  <--these share similar naming  a-foo-...
>            (site b)             b-foo-...=20
>            (site c) and the rolocation is to the 'foo' name
>=20
> For safety, SQUID runs on port 80 and zope on port 8080 and looks only
> at localhost.
>=20
> The rewriter takes URLs of the form=20
>=20
> http://xx/yy=20
>=20
>=20
> and rewrites them to
>=20
>         =
http://127.0.0.1:8080/VirtualHostBase/http/xx/VirtualHostRoot/yy
>=20
> per the spec.  This seems to work. =20
>=20
> However, when the site begins generating requests, they are all =
relative
> to the VirtualHostRoot and so are not found.   I suppose another set =
of=20
> rewrite rules will solve the problem--but am I missing some crutial =
part
> of the VHM setup? =20
>=20
> -dra
>=20
>=20

Hi,

Have a look at this new chapter of the future Zope Book, it might be of =
some help (describes the VHM in details).

http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/VirtualHostin=
g.stx

--Gilles


mailto:gilles@pilotsystems.net