You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Andreas Papst <an...@univie.ac.at> on 1997/04/21 19:50:02 UTC

config/438: Cannot use multiple Listen-directives with IP-addresses as argument

>Number:         438
>Category:       config
>Synopsis:       Cannot use multiple Listen-directives with IP-addresses as argument
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Apr 21 10:50:01 1997
>Originator:     andreas.papst@univie.ac.at
>Organization:
apache
>Release:        1.2b7, 1.2b8
>Environment:
AIX 4.2
gcc 2.7.2.1
>Description:
To my primary IP-address 1.2.3.2 I defined 3 alias-addresses with ifconfig
command showing below too:
ifconfig en0 1.2.3.3 netmask 255.255.255.224 alias
ifconfig en0 1.2.3.4 netmask 255.255.255.224 alias
ifconfig en0 1.2.3.5 netmask 255.255.255.224 alias

1.2b7:
I want that apache should listen to 1.2.3.3:80, 1.2.3.4:80 and 1.2.3.5:8000
and not to any other port else!

Therefore I tried the config
Listen	1.2.3.3:80
Listen	1.2.3.4:80
Listen	1.2.3.5:8000

A call of httpd gives "httpd: could not bind to address 1.2.3.5 port 8000"
A different sequence of Listen-directives alway be replied with ip-address
and port number of the last Listen directive.

Listen	80
Listen	8000

works but does not do what I want.

An upgrade to 1.2b8 gives that you can start httpd with the first Listen-
directives sequence. but httpd dies silently after approx. 2 hours.
>How-To-Repeat:

>Fix:

>Audit-Trail:
>Unformatted: