[Zope] Requests and strings

Jonathan listsmurf@bbox.org
Fri, 23 Mar 2001 00:04:47 +0100


Hi all,

Got Zope set up behind a Squid proxy, works fine. But now I need an 
access rule that serves the right file based on HTTP_HOST, 
essentially automated virtual hosting; configure DNS, add Zope 
folders et voila!

Basically, I want to ask Squid for 'www.domain.com' and get it from 
'zopeserver:8080/domain.com/www'. I know about the usual suspects, 
but I want to able to add a virtual host without having to change 
Apache configuration files, add SiteRoots or something like that.

I've been banging my head against the screen for a few hours now to 
get the thing to work. So far, nothing works. My Zope root:

  /
   /domain.com
    /www
    /devel
   /domain2.com
    /www
    /test

I figured I'd put an access rule in the root folder which looks at 
HTTP_HOST ('www.domain.com:8080' for example), sets the base folder 
to '/domain.com/www'  and starts serving files from there.

Probably missing something, somewhere, but I can't find what :(
Any ideas? Suggestions?