Skip to content

Commit 6661b22

Browse files
author
Webslice
committed
#5428 ignore custom directives if forced https
1 parent ff920a3 commit 6661b22

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

server/conf/vhost.conf.master

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,16 @@
529529
# WEBDAV END
530530
</IfModule>
531531

532-
<tmpl_var name='apache_directives'>
532+
<tmpl_if name='ssl_enabled'>
533+
<tmpl_var name='apache_directives'>
534+
<tmpl_else>
535+
<tmpl_if name='rewrite_to_https' op='==' value='y'>
536+
# skipping apache_directives, as that will be handled by the ssl vhost
537+
<tmpl_else>
538+
<tmpl_var name='apache_directives'>
539+
</tmpl_if>
540+
</tmpl_if>
541+
533542
<tmpl_hook name='apache2_vhost:vhost_footer'>
534543
</VirtualHost>
535544

0 commit comments

Comments
 (0)