[Zope-dev] Re: [Zope] Zope+Virtual Domains

Michel Pelletier michel@digicool.com
Thu, 1 Apr 1999 09:57:26 -0500


> -----Original Message-----
> From: Anthony Baxter [mailto:anthony@interlink.com.au]
> Sent: Thursday, April 01, 1999 7:39 AM
> To: Daren Sefcik
> Cc: zope-dev@zope.org
> Subject: [Zope-dev] Re: [Zope] Zope+Virtual Domains
> 
> 
> I haven't seen a reply to this... ZopeHTTPServer (or ZServer, 
> which is 
> replacing it) certainly doesn't seem to have any support for 
> virtual domains. 
> 

ZopeHTTPServer does not support virtual hosting.  It is really a very
simple server based on CGIHTTPServer.  ZServer *does* support and
supports it rather well.  Checking out Sam's Medusa site
http://www.nightmare.com/medusa.  It might be handly to fetch yourself a
full copy of medusa and play with it.  It is really very cool.

> However... they bind to the wildcard address (listening to 
> all addresses
> on a box), so there's no reason you couldn't do _some_ sort 
> of switching
> based on the IP, using the Host header from the request in your DTML.
> 
> cc'ing in zope-dev here:
> Hm hm hm. I wonder if it would be worth adding a hook to 
> ZServer, to make
> it look for a Host: header, and prepend something to the 
> request URL it
> passes to zope? Eg. 
> hostmap = { 'www.zope.org': '/Zopesite/',  'www.elvis.com': 
> '/elvis/' }
> 
> thoughts?
> 

Hmm.  Yes this is the 'IPless' virtual hosting based on the HTTP 1.1
Host header that I've heard about but never used.  Medusa is 1.1
compliant, so perhaps it does support it.  I don't know.

> (anyone know if ZServer will appear in public CVS anytime soon?)
> 
> Anthony
> 
> >>> Daren Sefcik wrote
> > Can the Zope server provide virtual domains or do I need to 
> use Apache??
> > Right now I have Apache set up with 4 virtual domains and 
> would rather
> > just use the default Zope httpserver.
> > 
> > 
> > Daren
> > 
> > 
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://www.zope.org/mailman/listinfo/zope
> > 
> > (For developer-specific issues, use the companion list,
> > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
> 
> -- 
> Anthony Baxter     <anthony@interlink.com.au>   
> It's never too late to have a happy childhood.
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://www.zope.org/mailman/listinfo/zope-dev
> 
> (For non-developer, user-level issues, use the companion list,
> zope@zope.org, http://www.zope.org/mailman/listinfo/zope )
>