Hi, I'm trying to put apache in front of zope, and let zope do the virtualHosting with VirtualHostMonster. For this the only howto I found which looks to do what I want is this: http://www.zope.org/Members/Jace/apache-vhm Which makes no assumption of where in zope my sites are the rewrite rules in here just pass the requests to port 8080, adding the VirtualHost path for this then resolve to the right folder containing the site specified by HTTP_HOST. The problem is that with this configuration all domain names I try with this rewrite rules, apache successfully pass it to zope but zope returns my zope root index_html meaning it didnt "executed" the VHM engine to map the domain the the right zope folder. Any help? Best Regards, Julio Silva --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
Hi Julio, just installed a VHM (zope 2.5.1) myself 30 min ago... I think your problem is that that you forgot to add the data for where in the zope tree zope should look it up: e.g. in my httpd.conf for a site bovmas.vetmed.uni-muenchen.de that is (yet) also available at www.vetmed.uni-muenchen.de:9673/bovmas I have <VirtualHost 141.84.176.122> ServerName bovmas.vetmed.uni-muenchen.de ProxyPass / http://www.vetmed.uni-muenchen.de:9673/bovmas/VirtualH ostBase/http/bovmas.vetmed.uni-muenchen.de:80/bovmas/VirtualHostRoot/ ProxyPassReverse <the same two-line entry as for ProxyPass> </VirtualHost> So what is important is the 'bovmas' *before* the VirtualHostRoot entry which basically means 'munge the input header URL up until here before passing it to zope'. HTH, Holger On Fri, Sep 27, 2002 at 11:51:59AM +0200, J?lio Silva wrote: [VirtualHostMonster]
The problem is that with this configuration all domain names I try with this rewrite rules, apache successfully pass it to zope but zope returns my zope root index_html meaning it didnt "executed" the VHM engine to map the domain the the right zope folder.
-- Holger Blasum <holger@blasum.net>
From: "Júlio Silva" <jsilva@ruido-visual.pt>
I'm trying to put apache in front of zope, and let zope do the virtualHosting with VirtualHostMonster. For this the only howto I found which looks to do what I want is this:
This configuration will always return the Zope root, because that's how it's configured. You need to add the path, and the ending "VirtualHostRoot" statement. Like this: RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/ www.virtualdomain.com:80/www_virtualdomain_com/VirtualHostRoot/$1 [L,P] Using ${} parameters might work (I haven't tried it) and then it would looks omething like this: RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}/%{HTTP_HOST}/Virtual HostRoot/$1 [L,P] In which case the site root has to be located in /the.server.name.com/ . For more info on the virtual host monster see: http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/VirtualHosting.s tx And for more info on how to use zope and Apache, see: http://www.zope.org/Members/regebro/Zope_and_Apache Best Regards Lennart Regebro, Torped http://www.easypublisher.com/
This configuration will always return the Zope root, because that's how it's configured. You need to add the path, and the ending "VirtualHostRoot" statement. Like this:
RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/ www.virtualdomain.com:80/www_virtualdomain_com/VirtualHostRoot/$1 [L,P]
Using ${} parameters might work (I haven't tried it) and then it would looks omething like this:
RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}/%{HTTP_HOST}/Virtual HostRoot/$1 [L,P]
In which case the site root has to be located in /the.server.name.com/ .
Ok thats my problem, I know it works as you say, but I dont want to define in apache conf info about my zope folder structure, in the example you gave I would have to put my sites in /some.folder.on.zope.root, but: 1- I dont want to create this dependency between apache and zope I dont want to explicitly put in apache knowledge about my zope folder structure. The one that has that info (map domain to folder) is my VHM, I thought there was a way to call VirtualHostBase and just pass the domain and zope VHM would return/handle the mapping to the correspondent zope folder where that domain is hosted. 2- say I have my sites in different zope folder strucuture, one in /mydomain.com and others in /othersites/otherdomain.com? tricky. I solved my problem using fastcgi which calls zope and then zope handles the VirtualHost mapping. If anyone has a solution for what I want not using fastcgi it would be great, maybe someone that knows more how VHM /VirtualHostBase.../VirtualHostRoot works. Best Regards, Julio Silva --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
participants (3)
-
Holger Blasum -
Júlio Silva -
Lennart Regebro