Skip to content

Commit 13810b5

Browse files
author
Marius Burkard
committed
Merge branch '5948-add-redirect-to-https-for-ispconfig-interface-by-000-ispconfig-vhost-in-apache2' into 'develop'
Resolve "add redirect to https for ispconfig interface by 000-ispconfig.vhost in apache2" Closes #5948 See merge request ispconfig/ispconfig3!1574
2 parents 8244ab3 + db636b5 commit 13810b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install/tpl/apache_ispconfig.vhost.master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,8 @@ NameVirtualHost *:<tmpl_var name="vhost_port">
112112
<tmpl_var name="ssl_comment">SSLStaplingResponderTimeout 5
113113
<tmpl_var name="ssl_comment">SSLStaplingReturnResponderErrors Off
114114
</tmpl_if>
115+
116+
# Redirect http to https
117+
ErrorDocument 400 "<script>document.location.href='https://'+location.hostname+':'+location.port';</script><h1>Error 400 - trying to redirect</h1>"
118+
115119
</VirtualHost>

0 commit comments

Comments
 (0)