SSL cert path only being replaced once

Craig Menning's Avatar

Craig Menning

12 Dec, 2014 06:09 PM

In the Apache Virtual Hosts configuration, the key and cert paths are automatically replaced with the proper path to the certificate chosen for that vhost. This replacement only seems to be done once per template, however. This precludes defining multiple vhosts in one template. An example is creating one vhost to redirect https://mydomain.com to https://www.mydomain.com and one vhost to serve https://www.mydomain.com. It would be nice to put both these in one template so changes to the SSL certificate do not have to be updated in multiple spots.

  1. Support Staff 1 Posted by Marat Komarov on 12 Dec, 2014 06:26 PM

    Marat Komarov's Avatar

    Apache role supports only one virtual host per template. It's by design.
    Changing this is difficult, cause it's not just change replace-one to replace-all in template processing.

    Regards,
    Marat

  2. Craig Menning closed this discussion on 19 Dec, 2014 05:11 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac