Skip to content

Conversation

smortex
Copy link
Collaborator

@smortex smortex commented Jan 9, 2025

When using mod_md to manage TLS certificates, a domain can only appear
once as a parameter of a MDomain configuration.

When a single node configue multiple Virtual Hosts to serve the same
website on different IP Addresses or on different ports, and we want to
use mod_md to manage the TLS certificate, the current code produce a
MDomain entry in each virtual host, leading to configuration error and
preventing apache from starting.

This commit rework how the MDomain setting is emitted, and ensure it is
only output once even if multiple Virtual Hosts configure the same
domain.

When using mod_md to manage TLS certificates, a domain can only appear
once as a parameter of a MDomain configuration.

When a single node configue multiple Virtual Hosts to serve the same
website on different IP Addresses or on different ports, and we want to
use mod_md to manage the TLS certificate, the current code produce a
MDomain entry in each virtual host, leading to configuration error and
preventing apache from starting.

This commit rework how the MDomain setting is emitted, and ensure it is
only output once even if multiple Virtual Hosts configure the same
domain.
@smortex smortex force-pushed the allow-mod_md-to-reuse-domain branch from b1f108a to 58de231 Compare January 9, 2025 00:17
@smortex smortex marked this pull request as ready for review January 9, 2025 00:33
@smortex smortex requested review from bastelfreak, ekohl and a team as code owners January 9, 2025 00:33
@smortex smortex added the bugfix label Jan 9, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant