diff --git a/install/tpl/apache_ispconfig.vhost.master b/install/tpl/apache_ispconfig.vhost.master
index e38e39a8e1f2e10ab170ebf3cc5248029c15255a..df0b98fda7da7c7c4ff5896742a65ad1f8476350 100644
--- a/install/tpl/apache_ispconfig.vhost.master
+++ b/install/tpl/apache_ispconfig.vhost.master
@@ -114,6 +114,6 @@ NameVirtualHost *:<tmpl_var name="vhost_port">
   </tmpl_if>
 
   # Redirect http to https
-  ErrorDocument 400 "<script>document.location.href='https://'+location.hostname+':'+location.port';</script><h1>Error 400 - trying to redirect</h1>"
+  ErrorDocument 400 "<script>document.location.href='https://'+location.hostname+':'+location.port;</script><h1>Error 400 - trying to redirect</h1>"
 
 </VirtualHost>