[Zope] SiteAccess and Subdomains

J. Atwood jatwood@bwanazulia.com
Thu, 25 May 2000 14:08:58 -0400


I am trying to get SiteAcess to work with a subdmain..

So I have added an empty SiteRoot in the /subdomain folder
and added a DTML Method

<dtml-let hostname="_.string.join(_.string.split(_.string.split(HTTP_HOST,
':')[0], '.')[-2:], '.')"
 sitemap="{'subdomain.domain.com': 'subdomain'}">
    Do we have a match?
<dtml-if expr="sitemap.has_key(hostname)">
Set the logical root: <dtml-call "REQUEST.set('SiteRootPATH', '/')">
Add physical root: <dtml-call "REQUEST.path.append(sitemap[hostname])">
</dtml-if>
</dtml-let>


But am not getting any anything (still just points to the root.

Help?

Thanks,
J