You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1996/05/29 16:59:23 UTC

WWW Form Bug Report: "The New wirtual addressing DON'T work if you have more then ONE interface." on SunOS 4.x (fwd)

not acked

Message-Id: <19...@taz.hyperreal.com>
From: sow@cad.luth.se
To: apache-bugs%apache.org@organic.com
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!!!


--

Backtrace:
--

This is my lines from  httpd.conf

<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?

--

----- End of forwarded message from sow@cad.luth.se -----

-- 
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.

Re: WWW Form Bug Report: "The New wirtual addressing DON'T work if you have more then ONE interface." on SunOS 4.x (fwd)

Posted by Brian Behlendorf <br...@organic.com>.
> 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/