[Zope] Imitating SiteRoot in an accessrule

Ivo van der Wijk ivo@amaze.nl
Tue, 15 Jan 2002 16:59:57 +0100


On Tue, Jan 15, 2002 at 10:49:32AM -0500, Martijn Pieters wrote:
> 
> I have built virtual domains with only an access_rule and a
> VirtualHostMonster. Isa simple. I just manipulate the taversal stack based
> on the HTTP_HOST var and voila, instant virtual hosts. You can make this
> pretty generic and not need a SiteRoot object at all.
> 

I've just done this - the only tricky part was to avoid recursion
(it seems that the access_rule is invoked before and after the vhm? 
Anyway, my connection hung)

Is this still efficient? It's alot of rewriting/manipulation for each request
that comes in..

Cheers,

	Ivo

-- 
Drs. I.R. van der Wijk                              -=-
Brouwersgracht 132                      Amaze Internet Services V.O.F.
1013 HA Amsterdam, NL                               -=-
Tel: +31-20-4688336                       Linux/Web/Zope/SQL/MMBase
Fax: +31-20-4688337                           Network Solutions
Web:     http://www.amaze.nl/                    Consultancy
Email:   ivo@amaze.nl                               -=-