Bug 54878 - Multiple Listen directives prevent server to start on some valid configurations
Summary: Multiple Listen directives prevent server to start on some valid configurations
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.4
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-23 20:47 UTC by Vincent Deffontaines
Modified: 2020-06-23 08:47 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Deffontaines 2013-04-23 20:47:15 UTC
Listen 127.0.0.1:443
Listen [::]:443

These two config lines are valid, and should work together. Httpd is expected to bind on the sole IPv4 address I mentionned, and on [::].

They result with httpd refusing to start.

(98)Address already in use: make_sock: could not bind to address [::]:443


This bug can also be reproducted on 2.2.22. I tend to suspect it has been around since IPv6 was implemented into httpd at all.
Comment 1 Vincent Deffontaines 2013-04-23 20:50:34 UTC
Listen 0.0.0.0:443
Listen [::]:443

These do work and might constitue a workaround on some configurations.
Comment 2 Joe Orton 2020-06-23 08:47:38 UTC
This is the default behaviour when IPv4-mapped IPv6 addresses are enabled, since binding on port 443 on both addresses conflicts at kernel level if that is true.  With r1879106 it is now possible to change this behaviour.