[Zope] Virtual Host Monster but wrong Root Folder returned by PARENTS[-1]

Justin Heesemann jh@ionium.org
Thu, 12 Jul 2001 23:34:01 +0200


Hello,

i am using zope 2.4.0b2, having a virtual hosting monster in my root folder.
in my root folder i have a folder called "host.com" (and i want to add
otherfolders for all other domains).

i'm using a rewrite rule in apache which says :

RewriteRule ^/(.*) http://my.host.com:8080/VirtualHostBase/http/www.host.com:80/host.com/VirtualHostRoot/host.com/$1 [P]

Ok, everything is fine so far.

i then have created a small dtml method in the folder host.com, which i call
"RootNavigation" as it should present a small navigation bar, listing all
folders in the root dir (which I think should be "/hosts.com").
RootNavigation :
----------
<dtml-with expr="PARENTS[-1]">
<dtml-in expr="objectValues('Folder')">
<a href="&dtml-absolute_url;" class="prim"><dtml-var title_or_id></a>
</dtml-in>
</dtml-with>
----------

Unfortunately, when i point my browser to http://www.host.com
i don't get a list, of the folders residing in /hosts.com, but a list of
the domains (including host.com) which i have created as folders in
the Zope Root Dir.

So it seems that PARENTS[-1] is not pointing to the /host.com folder.

Any ideas how to change that ?

Best Regards,

Justin Heesemann