[Zope-dev] PROPOSAL: Site objects

Adam Feuer adamf@pobox.com
Tue, 21 Sep 1999 13:40:28 -0700


> Quoting Michel Pelletier <michel@digicool.com>:
> > > 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 
> > 
> > Hmmm.. this sounds like it wouldn't work with HTTP 1.1 'Host' header
> > based virtual hosting.  Where the IP addr is the same for all virtual
> > hosts.
> 
> michel,
>   well, yes. but the IP-based scheme seemed the hardest problem to
> tackle. :-)
> 
>   it would be easy enough to change the Remapper logic to look for the
> HTTP_HOST key, and if it exists, use it; othewise check the socket IP
> address, and use that.

  i forgot to say, i'll update my code to do that! :-)

cheers
adam

--
Adam Feuer
adamf@pobox.com