[Zope] Apache SubFolder to Zope root folder using VirtualHostMonster
Stefan H. Holek
stefan@epy.co.at
Thu, 5 Apr 2001 20:12:28 +0200 (CEST)
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 )
>