[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/30/2007 at 07:29AM PDT, ID: 22862394 | Points: 125
[x]
Attachment Details

Apache Bind problems - Will 'Listen 80' but not to specific IPs, how to bind to specific IPs?

Asked by bill78uk in Apache Web Server

Tags: bind, apache, address

Hello!
I am trying to bind my Apache2 to specific IP addresses. Currently in the apache conf I have:

Listen 80
and then in my virtual hosts config I have:

NameVirtualHost 80.xx.xx.15:80
NameVirtualHost 80.xx.xx.17:80

<VirtualHost 80.xx.xx.15:80>


When I change the Listen part to :

Listen 80.xx.xx.15:80
Listen 80.xx.xx.17:80


Shutdown the server, check that nothing is running on port 80, and restart I get the error message:

(98)Address already in use: make_sock: could not bind to address 80.xx.xx.15:80 no listening sockets

and Apache exits. I have no other Listen's elsewhere in the code (I do have a ServerName outside of the Virtualhost, if that makes a difference?). I change it back to Listen 80 and it works again no problem! I'm limited to experiment too much, as it's a live server.

What could be the problem? Please help!
 
Keywords: Apache Bind problems - Will 'Listen …
 
Loading Advertisement...
 
[+][-]09/30/07 07:52 AM, ID: 19987114

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/30/07 08:13 AM, ID: 19987167

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/04/07 02:51 PM, ID: 20018197

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/23/09 01:26 PM, ID: 24695867

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091028-EE-VQP-87 / EE_QW_2_20070628