From 6661b222a9a47f3b7d8efba3e3bca2763b9d49a2 Mon Sep 17 00:00:00 2001 From: Webslice <webslice@bixels.nl> Date: Wed, 30 Oct 2019 13:08:20 +0100 Subject: [PATCH] #5428 ignore custom directives if forced https --- server/conf/vhost.conf.master | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master index 0982a3cf41..d95d810ad3 100644 --- a/server/conf/vhost.conf.master +++ b/server/conf/vhost.conf.master @@ -529,7 +529,16 @@ # WEBDAV END </IfModule> -<tmpl_var name='apache_directives'> +<tmpl_if name='ssl_enabled'> + <tmpl_var name='apache_directives'> +<tmpl_else> + <tmpl_if name='rewrite_to_https' op='==' value='y'> + # skipping apache_directives, as that will be handled by the ssl vhost + <tmpl_else> + <tmpl_var name='apache_directives'> + </tmpl_if> +</tmpl_if> + <tmpl_hook name='apache2_vhost:vhost_footer'> </VirtualHost> -- GitLab