Apache SubFolder to Zope root folder using VirtualHostMonster
I am having trouble getting VirtualHostMonsters to work for my configuration (or at least to my liking). What I want to do is have a a URL with a specific subfolder that is sent to my Apache server passed to the root directory of my ZServer using ProxyPass. For example, I want to have my Apache server proxy www.foo.com/zope requests to the root folder of my Zope installation. The httpd.conf line in question is: ProxyPass /zope http://www.foo.com:8080/VirtualHostBase/http/www.foo.com:80/Vi rtualHostRoot/ This successfully lands me in the Zope root directory, but URLs generated by Zope are missing the /zope/ part of the path. The Virtual Host Monster documentation has an example for what I am trying to do that looks like this: ProxyPass /zope http://www.foo.com:8080/VirtualHostBase/http/www.foo.com:80/Vi rtualHostRoot/_vh_zope When I hit the URL www.foo.com/zope, however, I get an error indicating that the object _vh_zope could not be found. So it is not appending /zope/ to my host base URL like I thought it would. Am I trying to use this feature correctly? Does this feature exists? Searching these archives I found mention of someone trying to do this a couple months ago, and the response was that VirualHostPaths would be added in the future, so I thought that this might be that feature. I was using SiteRoots to accomplish this before, but some products, like ZWiki, didn't honor them, and I was starting to special case too many products in my ProxyPass configuration. I want a way to simply rewrite every incomming URL into the ZServer with a base of http://www.foo.com/zope. Any help would be appreciated! -Lars Holmstrom
From: "Lars Holmstrom" <lars@thinkshare.com>
The Virtual Host Monster documentation has an example for what I am trying to do that looks like this:
ProxyPass /zope
http://www.foo.com:8080/VirtualHostBase/http/www.foo.com:80/VirtualHostR oot/_vh_zope This should work with the most recent VHM. What version of Zope/SiteAccess are you using? Cheers, Evan @ digicool & 4-am
Hello, as I Debian maintainer I try to bundle all stuff on my machine as Debian package. I did so with the Zope Book I found at http://www.zope.org/Members/michel/ZB/TheZopeBook2.3a2.tgz . The Open Publication License would allow to distribute this package with Debian (correct me if I'm wrong - I'm no legal expert). Would you think consider it to be a good idea to make this package official? If so I think it would be a good idea if there would be a source-package from which the HTML output is generated. Currently there is no real table of contents page in the downloadable HTML version nor it is in sync with the web pages. I fixed the missing table of contents page by inserting links into Preface.html to the apropriate files, but this is rather stupid. Is there any kind of source for the book, would this be allowed to be distributed or at least is there a newer version with a table of contents (not only the link pointing to the www.zope.org page which is not very clever for offline readers). Kind regards Andreas.
Andreas Tille wrote:
as I Debian maintainer I try to bundle all stuff on my machine as Debian package.[snip] The Open Publication License would allow to distribute this package with Debian (correct me if I'm wrong - I'm no legal expert). Would you think consider it to be a good idea to make this package official?
I think it would be a very good idea.
[snip] Is there any kind of source for the book, would this be allowed to be distributed or at least is there a newer version with a table of contents (not only the link pointing to the www.zope.org page which is not very clever for offline readers).
The *source* for the book can be found here: http://sourceforge.net/projects/zope-book look under *cvs*. Cheers, Michael Bernstein.
On Thu, 5 Apr 2001, Michael R. Bernstein wrote:
I think it would be a very good idea. OK, so I'll continue my efforts.
The *source* for the book can be found here: http://sourceforge.net/projects/zope-book
look under *cvs*. Well, I tried as described:
This project's SourceForge CVS repository can be checked out through anonymous (pserver) CVS with the following instruction set. The module you wish to check out must be specified as the modulename. When prompted for a password for anonymous, simply press the Enter key. cvs -d:pserver:anonymous@cvs.zope-book.sourceforge.net:/cvsroot/zope-book login cvs -z3 -d:pserver:anonymous@cvs.zope-book.sourceforge.net:/cvsroot/zope-book co modulename but what are valid modulenames. Sorry I have some trouble to access CVS trough our firewall. Kind regards Andreas.
Andreas Tille wrote:
On Thu, 5 Apr 2001, Michael R. Bernstein wrote:
The *source* for the book can be found here: http://sourceforge.net/projects/zope-book
look under *cvs*.
Well, I tried as described: [snip] but what are valid modulenames. Sorry I have some trouble to access CVS trough our firewall.
Sorry for the incomplete instructions. You can browse the repositorty through the web here: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/?cvsroot=zope-book Where you can see that there is a 'Book' module that you can check out. HTH, Michael Bernstein.
On Fri, Apr 06, 2001 at 03:02:58PM +0200, Andreas Tille wrote:
cvs -d:pserver:anonymous@cvs.zope-book.sourceforge.net:/cvsroot/zope-book login cvs -z3 -d:pserver:anonymous@cvs.zope-book.sourceforge.net:/cvsroot/zope-book co modulename
but what are valid modulenames. Sorry I have some trouble to access CVS trough our firewall.
The module name is "zope-book". If you wish I can send you today's CVS snapshot as a .tar.bz2 file, and you can use "cvs up" from there to update it later. []s, |alo +---- -- I say a prayer now our love's departed That you'll come back to stay Bring back the perfect day http://www.laranja.org/ mailto:lalo@laranja.org pgp key: http://www.laranja.org/pessoal/pgp Brazil of Darkness (RPG) --- http://www.BroDar.org/
Lars! If, as I seem to read from your mail, you only want to serve a single vhost from your Zope instance, you do not need any SiteRoot/VHM. Like so: <VirtualHost ...> ... # enable caching ProxyRequests on # this is for the icons ProxyPass /p_ http://my.org:8080/p_ ProxyPass /misc_ http://my.org:8080/misc_ ProxyPass /Control_Panel http://my.org:8080/Control_Panel # pass /zope ProxyPass /zope http://my.org:8080 ProxyPassReverse /zope http://my.org:8080 </VirtualHost> And *no* extra config on the Zope side. HTH, Stefan On Wed, 4 Apr 2001, Lars Holmstrom wrote:
I am having trouble getting VirtualHostMonsters to work for my configuration (or at least to my liking). What I want to do is have a a URL with a specific subfolder that is sent to my Apache server passed to the root directory of my ZServer using ProxyPass. For example, I want to have my Apache server proxy www.foo.com/zope requests to the root folder of my Zope installation. The httpd.conf line in question is:
ProxyPass /zope http://www.foo.com:8080/VirtualHostBase/http/www.foo.com:80/Vi rtualHostRoot/
This successfully lands me in the Zope root directory, but URLs generated by Zope are missing the /zope/ part of the path. The Virtual Host Monster documentation has an example for what I am trying to do that looks like this:
ProxyPass /zope http://www.foo.com:8080/VirtualHostBase/http/www.foo.com:80/Vi rtualHostRoot/_vh_zope
When I hit the URL www.foo.com/zope, however, I get an error indicating that the object _vh_zope could not be found. So it is not appending /zope/ to my host base URL like I thought it would. Am I trying to use this feature correctly? Does this feature exists? Searching these archives I found mention of someone trying to do this a couple months ago, and the response was that VirualHostPaths would be added in the future, so I thought that this might be that feature. I was using SiteRoots to accomplish this before, but some products, like ZWiki, didn't honor them, and I was starting to special case too many products in my ProxyPass configuration. I want a way to simply rewrite every incomming URL into the ZServer with a base of http://www.foo.com/zope. Any help would be appreciated!
-Lars Holmstrom
_______________________________________________ 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: "Stefan H. Holek" <stefan@epy.co.at> To: "Lars Holmstrom" <lars@thinkshare.com> Cc: <zope@zope.org> Sent: Thursday, April 05, 2001 7:12 PM Subject: Re: [Zope] Apache SubFolder to Zope root folder using VirtualHostMonster
On Wed, 4 Apr 2001, Lars Holmstrom wrote:
<snip>
I want a way to simply rewrite every incomming URL into the ZServer with a base of http://www.foo.com/zope. Any help would be appreciated!
I use an Apache rewrite rule to do this. Apache catches everything from http://www.foo.com/zope and sends it to Zserver via pcgi. Zope correctly realises that it is at http://www.foo.com/zope and all it urls are correctly generated. There is plenty of stuff around the mailing list (and a howto or two as well I think), I just can't remember any links off the top of my head. Is this what you need, or have I misunderstood what's going on? tim
participants (7)
-
Andreas Tille -
Evan Simpson -
Lalo Martins -
Lars Holmstrom -
Michael R. Bernstein -
Stefan H. Holek -
Tim Hicks