[Zope] Apache/VHM _and_ AccessRule at the same time

Dieter Maurer dieter@handshake.de
Mon, 16 Jun 2003 22:57:05 +0200


Danny W. Adair wrote at 2003-6-16 12:33 +1200:
 > ...
 > I'm running into some problems having Apache Rewrite -> Virtual Host 
 > Monster and an Access Rule _at the same time_.
 > ....
 > --------------------------
 > Access Rule "extractCustomerFromURL"
 > --------------------------
 > request = container.REQUEST
 > stack = request['TraversalRequestNameStack']
 > customer_id = stack.pop()
 > request.set('customer_id', customer_id)
 > request.setVirtualRoot(request.steps + [customer_id])

You AccessRule should almost surely not use "setVirtualRoot"
but modify "stack" directly.
Otherwise, it interferes with the "virtual root" set by VHM.


Dieter