From eecd30e90d02da48c280a84d3c7f1841f4f006026e37d0ec7c8ec57545e3fd12 Mon Sep 17 00:00:00 2001 From: Marco Chiappero Date: Mon, 28 Jul 2025 09:00:17 +0000 Subject: [PATCH] Update httpd.conf to bind to IPv4 and/or IPv6 sockets Enable the use of individual IPv4 and IPv6 sockets when the respective IP is detected and LISTEN_ALL_INTERFACES is not set to true. This allows to correctly bind to both the IPv4 and IPv6 addresses found and not just one of them. Signed-off-by: Marco Chiappero --- ironic-image/ironic-config/httpd.conf.j2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ironic-image/ironic-config/httpd.conf.j2 b/ironic-image/ironic-config/httpd.conf.j2 index ef3de62..74af4c8 100644 --- a/ironic-image/ironic-config/httpd.conf.j2 +++ b/ironic-image/ironic-config/httpd.conf.j2 @@ -2,7 +2,12 @@ ServerRoot {{ env.HTTPD_DIR }} {%- if env.LISTEN_ALL_INTERFACES | lower == "true" %} Listen {{ env.HTTP_PORT }} {% else %} -Listen {{ env.IRONIC_URL_HOST }}:{{ env.HTTP_PORT }} +{% if env.ENABLE_IPV4 %} +Listen {{ env.IRONIC_IP }}:{{ env.HTTP_PORT }} +{% endif %} +{% if env.ENABLE_IPV6 %} +Listen [{{ env.IRONIC_IPV6 }}]:{{ env.HTTP_PORT }} +{% endif %} {% endif %} Include /etc/httpd/conf.modules.d/*.conf User ironic-suse