Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apache::servername parameter does nothing #2576

Open
tedgarb opened this issue Oct 29, 2024 · 0 comments
Open

apache::servername parameter does nothing #2576

tedgarb opened this issue Oct 29, 2024 · 0 comments

Comments

@tedgarb
Copy link

tedgarb commented Oct 29, 2024

Describe the Bug

The documentation for the apache::servername directive at https://forge.puppet.com/modules/puppetlabs/apache/reference#-apache--servername (source at https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/init.pp#L307C1-L309C55) says that this "Sets the Apache server name via Apache's ServerName directive." However, the servername option is not used any further in init.pp, and in particular it does not get passed into the default or default-ssl vhosts.

Expected Behavior

The servername directive is used to set the servername directive in the default/default-ssl vhosts.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Set the servername directive, such as by
  servername => 'example.com',
  default_https_vhost => true,
}
  1. Apply the config
  2. Inspect the resulting 15-default-80.conf and 15-default-ssl-443.conf files, and see that ServerName is set to default instead of example.com

Environment

  • Version 12.1.0
  • Platform RHEL8/9

Additional Context

Changing this is going to involve some sort of breaking change, especially since the filename is set based on the servername value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant