[Zope-dev] PROPOSAL: Site objects
Hannu Krosing
hannu@tm.ee
Wed, 22 Sep 1999 00:25:33 +0300
Adam Feuer wrote:
>
o VirtualHostFolders derive from the Folder Object
> -- with an additional property, IPaddress
> (this will eventually be a list of IPaddresses?)
>
> o Small patch to ZServer.HTTPRequest
> -- so it places the actual socket IP and Port numbers into the
> request's environment (HTTP_SOCKET_IP and HTTP_SOCKET_PORT)
>
> -- i didn't use HTTP_HOST for mapping since it is symbolic;
> i wanted to have a 1:1 mapping from IP address to path
At least leave an option to use HTTP_HOST, as many sites are using
NamedVirtualHosts - I do it all the time with Apache.
> o new persistent Remapper object
> -- holds dictionary of IP:path_prefix mappings
> -- Issue: how and where to store this, since it needs to be
> notifies upon creation or deletion or changes
> to VirtualHostFolders,
Should probably be a property of your VirtualFolder class/product
(as opposed to an instance)
...
> whatever way is eventually chosen, i think virtual hosting is a Good
> Thing and will help make Zope better and better... :-)
Amen!
------------------
Hannu