Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have multiple ip's routing to my server. I need to listen on all of them but not the server ip.

Supposedly apache is suppose to be able to listen on multiple ip's but when I have multiple listen commands apache won't start:

e.g.,

Listen 192.168.05.12:80
#Listen 192.168.05.13:80
#Listen 192.168.05.14:80

fails when the 2 lines are commented out.

How do I get apache to listen/bind to multiple ip's?

(I'm using latest uniform server)

Edit: Errors from event viewer:

The Apache service named  reported the following error:
>>> (OS 10049)The requested address is not valid in its context.  : AH00072: make_sock:     could not bind to address 192.168.05.13:80     .


The Apache service named  reported the following error:
>>> AH00451: no listening sockets available, shutting down     .


The Apache service named  reported the following error:
>>> AH00015: Unable to open logs     .

When I listen only on one ip I do not get any errors.

(BTW, this is win2012S)

share|improve this question
1  
What do your apache error logs say? –  EEAA Apr 8 '13 at 19:43
    
looks like apache or another webserver is already listening on port 80. try stopping them first. –  Marcel Apr 8 '13 at 20:29
    
stackoverflow.com/questions/4657347/… this looks similar. –  Shutupsquare Apr 8 '13 at 20:30
    
@marcel um, no, apache isn't running. Nothing is server on those ip's. I can do one at a time in any order and it will work fine. Only problem is when I try and do more than one. (all the ip's do point to a common server though but I doubt that matters). –  Archival Apr 8 '13 at 20:31
    
@Shutupsquare when I do ipconfig all the addresses are shown. I added them to the ipv4 config under the network device because initially they were not working. This got them to work but maybe something else is needed to allow more than one bind at a time(doubt it but possible). –  Archival Apr 8 '13 at 20:34
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.