VHM & Squid Problems
I have partitioned my server into a collection of sites using the VHM and Squid and a custom URL rewriter. At the hightest level I have the_net <=> SQUID <=> Zope The Zope space is split into a few sites which are independent SQUID <=> (site a) <--these share similar naming a-foo-... (site b) b-foo-... (site c) and the rolocation is to the 'foo' name For safety, SQUID runs on port 80 and zope on port 8080 and looks only at localhost. The rewriter takes URLs of the form http://xx/yy and rewrites them to http://127.0.0.1:8080/VirtualHostBase/http/xx/VirtualHostRoot/yy per the spec. This seems to work. However, when the site begins generating requests, they are all relative to the VirtualHostRoot and so are not found. I suppose another set of rewrite rules will solve the problem--but am I missing some crutial part of the VHM setup? -dra
hi, I've done it a little bit simpler with squid as reverse proxy. this howto helped me a lot. http://www.zope.org/Members/bowerymarc/squid-zserver-virtual SQUID runs on port 80 of my internet-ip, ZOPE runs on port 80 of localhost. then you don't need an external rewrite. add simply your domains to the mappings-tab of the VHM. www.virtual1.de/virtfolder1/content www.virtual2.de/virtfolder2/content cheers, maik Dennis Allison wrote:
I have partitioned my server into a collection of sites using the VHM and Squid and a custom URL rewriter.
At the hightest level I have
the_net <=> SQUID <=> Zope
The Zope space is split into a few sites which are independent
SQUID <=> (site a) <--these share similar naming a-foo-... (site b) b-foo-... (site c) and the rolocation is to the 'foo' name
For safety, SQUID runs on port 80 and zope on port 8080 and looks only at localhost.
The rewriter takes URLs of the form
and rewrites them to
http://127.0.0.1:8080/VirtualHostBase/http/xx/VirtualHostRoot/yy
per the spec. This seems to work.
However, when the site begins generating requests, they are all relative to the VirtualHostRoot and so are not found. I suppose another set of rewrite rules will solve the problem--but am I missing some crutial part of the VHM setup?
-dra
Does this help? http://www.zope.org/Members/bowerymarc/squid-zserver-virtual on 8/18/02 8:40 PM, Dennis Allison at allison@sumeru.stanford.EDU scrivened:
I have partitioned my server into a collection of sites using the VHM and Squid and a custom URL rewriter.
At the hightest level I have
the_net <=> SQUID <=> Zope
The Zope space is split into a few sites which are independent
SQUID <=> (site a) <--these share similar naming a-foo-... (site b) b-foo-... (site c) and the rolocation is to the 'foo' name
For safety, SQUID runs on port 80 and zope on port 8080 and looks only at localhost.
The rewriter takes URLs of the form
and rewrites them to
http://127.0.0.1:8080/VirtualHostBase/http/xx/VirtualHostRoot/yy
per the spec. This seems to work.
However, when the site begins generating requests, they are all relative to the VirtualHostRoot and so are not found. I suppose another set of rewrite rules will solve the problem--but am I missing some crutial part of the VHM setup?
-dra
_______________________________________________ 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 )
----- Original Message ----- 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.
At the hightest level I have
the_net <=> SQUID <=> Zope
The Zope space is split into a few sites which are independent
SQUID <=> (site a) <--these share similar naming a-foo-... (site b) b-foo-... (site c) and the rolocation is to the 'foo' name
For safety, SQUID runs on port 80 and zope on port 8080 and looks only at localhost.
The rewriter takes URLs of the form
and rewrites them to
http://127.0.0.1:8080/VirtualHostBase/http/xx/VirtualHostRoot/yy
per the spec. This seems to work.
However, when the site begins generating requests, they are all relative to the VirtualHostRoot and so are not found. I suppose another set of rewrite rules will solve the problem--but am I missing some crutial part of the VHM setup?
-dra
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/VirtualHosting.s... --Gilles mailto:gilles@pilotsystems.net
participants (4)
-
Dennis Allison -
Gilles Lenfant -
Maik Jablonski -
Marc Lindahl