[Zope] SiteAccess, SSL + SiteRootBASE

emf mindlace@digicool.com
Tue, 12 Dec 2000 19:38:53 -0500


jeremie@jarna.com wrote:

> Hi everyone, 
> 
>  I am using Apache+Zserver+SSL (see How-to from TJ. Mannos), and it works 
>  fine. The thing is that I have to set manually a SiteRoot Object in a 
>  ssl Folder to make all this work and I would like to do it dynamically! 
>  So, when I create my SiteRoot object and enter 
>  "https://www.fightclub.com" as base, the page also displays a comment 
>  saying: 
>  "If Base is not set, the SiteRoot will first attempt to acquire 
>  SiteRootBASE and then search the REQUEST for it. The same holds for Path 
>  and SiteRootPATH." 
> 
>  So I was thinking that maybe I could set SiteRootBASE dynamically and 
>  make it work the same. Unfortunately, I made some attempts and it does 
>  not seem to work. 
> 
>  Does anybody have any idea of how to make it work? 

I do this in the access rule.

<dtml-if "condition">
<dtml-call "REQUEST.set('SiteRootBASE','some-value')">
</dtml-if>

~ethan