Skip to content

Commit 08bcffa

Browse files
author
Marius Burkard
committed
Merge branch 'feature/ignore-custom-directives-if-forced-https' into 'stable-3.1'
#5428 ignore custom directives if forced https See merge request ispconfig/ispconfig3!928
2 parents ce4d2d9 + 6661b22 commit 08bcffa

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)