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 Sun, 02 Jun 1996 01:28:02 GMT

> From: sow@cad.luth.se
> Date: Wed May 29  4:19:17 1996
> Subject: WWW Form Bug Report: "The New wirtual addressing DON'T work if you have more
then ONE interface." on SunOS 4.x
> 
> Submitter: sow@cad.luth.se
> Operating system: SunOS 4.x, version: 11.1b2.1b2
> Version of Apache Used: 
> Extra Modules used: 
> URL exhibiting problem: 
> 
> Symptoms:
> --
> ../bin/httpd -f /usr/www/apache/conf/httpd.conf
> Host www.cim.luth.se has multiple addresses ---
> you must choose one explicitly for use as
> a virtual host.  Exiting!!!
...
> <VirtualHost www.cim.luth.se>
> ServerName www.cim.luth.se
> DocumentRoot /usr/www/http_pages/root/cim
> </VirtualHost>
> 
> Why is not multiple hardware interfaces supported?
> Did I mis something?
> If I add an interface to the virtual doamin can an 
> interface have multiple addresses?

  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.

	Brian


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


Mime
View raw message