Bug 61865

Summary: RFE: httpd, add IP_FREEBIND support for Listen
Product: Apache httpd-2 Reporter: Lubos Uhliarik <luhliari>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 2.4.29   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Initial patch against trunk

Description Lubos Uhliarik 2017-12-06 12:06:05 UTC
Created attachment 35590 [details]
Initial patch against trunk

Currently the user behaviour for httpd enabled at boot is sub-optimal; if enabled, httpd may start before dependent network interfaces.

Steps to Reproduce:
1. add Listen 10.23.4.5:80 to httpd.conf
2. systemctl enable httpd
3. reboot

Actual results:
httpd will fail to start if 10.23.4.5 is not up

I created patch, which introduces new directive ListenFree. When using this directive, IP_FREEBIND option is set.
Comment 1 Joe Orton 2020-04-20 15:25:51 UTC
Adapted slightly and PR filed - https://github.com/apache/httpd/pull/114
Comment 2 Joe Orton 2020-04-23 08:27:07 UTC
Combined with older attempt at doing this as a Listen argument and committed in r1876865 - thanks for the patch!