You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Lee Fellows <lf...@4lane.com> on 2003/01/10 19:30:45 UTC

Re: [users@httpd] 2 problems - NamedVirtualHosts and Posts already in use

On Fri, 2003-01-10 at 12:50, Wes Hegge wrote:
> Changing the <VirtualHost 172.20.3.4:80> to <VirtualHost 
> 172.20.3.4> worked, thought I tried that yesterday though.
> 
> But I still have the [98] error.  I can get rid of that 
> error by commenting out the Listen directive but through 
> all the reading I have done, everything either has the 
> Listen directive in the config or tells me I have to have 
> it.  So what is up with that?

  This is off the top of my head, so consider the source.  
  Joshua's suggestion is a valid possiblility, and others have
  sugguested methods of checking this.  But one thing I would do when
  setting the Listen directive is to specify the IP address rather
  then the port.  We use multiple IP-based virtual hosts due to our
  need for SSL access on these sites.  Hence, our Listen directives
  specify the IP address and port.  Where it appears you are using
  Name-based virtual hosts, you should do fine just specifying the
  IP address in the Listen directive, not using the port at all.

  YMMV.


> 
> Thanks again for all the help!
> 
> Wes Hegge
> 
> On 10 Jan 2003 12:31:20 -0500
>   Lee Fellows <lf...@4lane.com> wrote:
> >On Fri, 2003-01-10 at 12:15, Wes Hegge wrote:
> >> Standard RedHat 8.0 server install.  After editing the 
> >> httpd.conf file to add my personal setting for 
> >>ServerName, 
> >> ServerAdmin, NameVirtualHost.  After saving and 
> >>restarting 
> >> Apache I get these errors:
> >> 
> >> [root@ginger conf]# apachectl start
> >> [Fri Jan 10 11:05:30 2003] [error] VirtualHost 
> >> 172.20.3.4:80 -- mixing * ports a
> >> nd non-* ports with a NameVirtualHost address is not 
> >> supported, proceeding with
> >> undefined results
> >> [Fri Jan 10 11:05:30 2003] [error] VirtualHost 
> >> 172.20.3.4:80 -- mixing * ports a
> >> nd non-* ports with a NameVirtualHost address is not 
> >> supported, proceeding with
> >> undefined results
> >> (98)Address already in use: make_sock: could not bind to 
> >> address 172.20.3.4:80
> >> no listening sockets available, shutting down
> >> 
> >> Here is a copy of my httpd.conf file:
> >> Listen 80
> >> 
> >> ServerAdmin webmaster@signalblast.com
> >> ServerName www.signalblast.com
> >> 
> >> NameVirtualHost 172.20.3.4
> >> <VirtualHost 172.20.3.4>
> >> 	ServerName www.signalblast.com
> >> 	ServerAdmin webmaster@signalblast.com
> >> 	DocumentRoot "/var/www/html"
> >> </VirtualHost>
> >> 
> >> <VirtualHost 172.20.3.4:80>
> >
> >   Try changing this to <VirtualHost 172.20.3.4>.  The 
> >error message
> >   indicates the port specification on this host is 
> >causing confusion.
> >
> >   
> >> 	ServerName www.test.com
> >> 	ServerAdmin webmaster@signalblast.com
> >> 	DocumentRoot "/var/virtualdomains/test"
> >> </VirtualHost>
> >> 
> >> 
> >> I can make the "(98)Address already in use: make_sock: 
> >> could not bind to address 172.20.3.4:80
> >> no listening sockets available, shutting down" error go 
> >> away by commenting out the 'Listen' directive, but 
> >> everything I have read tells me I need to have that 
> >> directive.
> >> 
> >> Any ideas?
> >> 
> >> Thanks,
> >> Wes Hegge
> >> 
> >> ---------------------------------------------------------------------
> >> The official User-To-User support forum of the Apache 
> >>HTTP Server Project.
> >> See <URL:http://httpd.apache.org/userslist.html> for 
> >>more info.
> >> To unsubscribe, e-mail: 
> >>users-unsubscribe@httpd.apache.org
> >>    "   from the digest: 
> >>users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: 
> >>users-help@httpd.apache.org
> >-- 
> >Lee Fellows <lf...@4lane.com>
> >
> >
> >---------------------------------------------------------------------
> >The official User-To-User support forum of the Apache 
> >HTTP Server Project.
> >See <URL:http://httpd.apache.org/userslist.html> for more 
> >info.
> >To unsubscribe, e-mail: 
> >users-unsubscribe@httpd.apache.org
> >    "   from the digest: 
> >users-digest-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: 
> >users-help@httpd.apache.org
> >
> 
> Wes Hegge
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
-- 
Lee Fellows <lf...@4lane.com>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org