httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42737] New: - (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 caused by multiple Listen directives
Date Mon, 25 Jun 2007 23:04:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42737>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42737

           Summary: (98)Address already in use: make_sock: could not bind to
                    address 0.0.0.0:80 caused by multiple Listen directives
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mvolaski@aecom.yu.edu


Apache cannot handle multiple Listen directives on the same port gracefully.

Intentionally create a misconfiguration with multiple Listen directives for the
same port, port 80.

At startup, apache complains with 
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

and fails to launch.

What has happened is that Apache bound to temporarily to the port specified by
the first Listen directive then tried to bind to it again as it read the second
Listen directive and failed.

Ask yourself how much time and effort it would take to track this
misconfiguration down based on this erroneous error message.

Ideally, Apache should detect the second and subsequent Listen directives on the
same port for the same virtual host and report something like "Listen directive
conflict: Check Your Configuration".

This would save a lot of sleuthing should such a misconfiguration occur.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message