[Zope] virtual hosts with ZServer
Alexander N Gould
agould@student.umass.edu
Wed, 14 Jun 2000 12:44:22 -0400 (EDT)
On Tue, 13 Jun 2000, ethan mindlace fremen wrote:
> <dtml-let hostname="_.string.join(_.string.split(_.string.split(HTTP_HOST,
> ':')[0], '.')[0], '')">
> <dtml-try>
> <dtml-if "_[hostname]">
> Set logical root: <dtml-call "REQUEST.set('SiteRootPATH', '/')">
> Add physical root: <dtml-call "REQUEST.path.append(hostname)">
> </dtml-if>
> <dtml-except KeyError>
> <dtml-call "RESPONSE.redirect('http://penguinpowered.com/NoHostHere')">
> </dtml-try>
> </dtml-let>
This almost works, but then even the superuser can't access these folders
(unauthorized)!
Help!
---------------
Building highways to reduce traffic is like loosening your belt to reduce
obesity