Skip to content

Commit db636b5

Browse files
author
Thom
committed
Redirect error 400 (http request to https port) to https (#5948)
1 parent 390d116 commit db636b5

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)