diff options
author | o <o@immerda.ch> | 2014-11-14 11:47:35 +0100 |
---|---|---|
committer | o <o@immerda.ch> | 2014-11-15 18:05:30 +0100 |
commit | 49064cc0ad4f89dd7aaa2690436c30a26a0385f9 (patch) | |
tree | eef8e7f004b01a088612daf581a398522ab347da /templates/vhosts/partials/ssl.erb | |
parent | 91ce5c16d26a51d7b61416e18b899e4ac115fa25 (diff) |
sni: make ssl_cert configurable per vhost
to support sni we configure ssl_certs on a vhost basis.
additionally this commit introduces a generic configuration hash which
will be used to replace most other parameters in the future.
Diffstat (limited to 'templates/vhosts/partials/ssl.erb')
-rw-r--r-- | templates/vhosts/partials/ssl.erb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/vhosts/partials/ssl.erb b/templates/vhosts/partials/ssl.erb new file mode 100644 index 0000000..24e28f5 --- /dev/null +++ b/templates/vhosts/partials/ssl.erb @@ -0,0 +1,5 @@ + SSLCertificateFile <%= configuration['ssl_certificate_file'] || scope.lookupvar('apache::default_ssl_certificate_file') %> + SSLCertificateKeyFile <%= configuration['ssl_certificate_key_file'] || scope.lookupvar('apache::default_ssl_certificate_key_file') %> +<% if configuration['ssl_certificate_chain_file'] || scope.lookupvar('apache::default_ssl_certificate_chain_file') != 'absent' -%> + SSLCertificateChainFile <%= configuration['ssl_certificate_chain_file'] || scope.lookupvar('apache::default_ssl_certificate_chain_file') %> +<% end -%> |