httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@organic.com>
Subject Re: WWW Form Bug Report: "The New wirtual addressing DON'T work if you have more then ONE interface." on SunOS 4.x (fwd)
Date Tue, 04 Jun 1996 06:06:32 GMT

Could someone knowlegeable about the virtualhost code check out this 
patch and respond to this gentleman?  I apologize if this attachment is 
uuencoded :)  Thanks.

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  |  We're hiring!  http://www.organic.com/Home/Info/Jobs/

---------- Forwarded message ----------
Date: Mon, 03 Jun 1996 20:56:00 +0200
From: Sven-Ove Westberg <sow@cad.luth.se>
To: Brian Behlendorf <brian@organic.com>
Subject: Re: WWW Form Bug Report: "The New wirtual addressing DON'T work if you have more
then ONE interface." on SunOS 4.x (fwd) 


Hi Brian.

>   The VirtualHost code must map to a single IP address, since the call to 
> bind() can only take one address as an argument.  So, when the server 
> goes through the config and sees the above, it tries to resolve 
> "www.cim.luth.se" to an IP address.  If it gets one, great, it binds to 
> that and off it runs.  If it finds two, it has a problem because it 
> doesn't know which ones, or perhaps both, that you want to use for this.
> If you want to specify an exact IP address, use that instead of the host 
> name (i.e. <VirtualHost 130.240.8.17>).  I suppose the server could be 
> modified such that it compared the list if IP addresses in response to 
> the name lookup against the list of IP addresses it *can* bind to, and 
> then binds to those that match... if you want to dive in and code that up 
> we'll be happy to consider using it.  At least, I *think* that would work.
> 

I got the code working with new HTTP/1.1 virtual hosts and more then one IP 
address. I hope I did not broke the old style with this patch. Please send me 
any comments on it.

Sven-Ove.



Mime
View raw message