Skip to content

Commit f90e18f

Browse files
author
Marius Burkard
committed
- changed vhost config to reflect ssl changes
1 parent c68e9b8 commit f90e18f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

server/conf/vhost.conf.master

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
# <IfModule mod_headers.c>
6161
# Header always add Strict-Transport-Security "max-age=15768000"
6262
# </IfModule>
63-
SSLCertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.crt
64-
SSLCertificateKeyFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.key
63+
SSLCertificateFile <tmpl_var name='ssl_crt_file'>
64+
SSLCertificateKeyFile <tmpl_var name='ssl_key_file'>
6565
<tmpl_if name='has_bundle_cert'>
6666
<tmpl_if name='apache_version' op='<' value='2.4.8' format='version'>
67-
SSLCertificateChainFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.bundle
67+
SSLCertificateChainFile <tmpl_var name='ssl_bundle_file'>
6868
</tmpl_if>
6969
<tmpl_if name='apache_version' op='>=' value='2.4' format='version'>
7070
SSLUseStapling on

server/plugins-available/apache2_plugin.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,10 @@ function update($event_name, $data) {
11531153
$crt_file = $ssl_dir.'/'.$domain.'.crt';
11541154
$bundle_file = $ssl_dir.'/'.$domain.'.bundle';
11551155

1156+
$vhost_data['ssl_crt_file'] = $crt_file;
1157+
$vhost_data['ssl_key_file'] = $key_file;
1158+
$vhost_data['ssl_bundle_file'] = $bundle_file;
1159+
11561160
if($data['new']['ssl'] == 'y' && $data['new']['ssl_letsencrypt'] == 'y') {
11571161
if(substr($domain, 0, 2) === '*.') {
11581162
// wildcard domain not yet supported by letsencrypt!

0 commit comments

Comments
 (0)