Bug 61865 - RFE: httpd, add IP_FREEBIND support for Listen
Summary: RFE: httpd, add IP_FREEBIND support for Listen
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.29
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2017-12-06 12:06 UTC by Lubos Uhliarik
Modified: 2020-04-23 08:27 UTC (History)
0 users

Initial patch against trunk (3.45 KB, patch)
2017-12-06 12:06 UTC, Lubos Uhliarik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 to httpd.conf
2. systemctl enable httpd
3. reboot

Actual results:
httpd will fail to start if 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!