diff --git a/install/tpl/nginx_apps.vhost.master b/install/tpl/nginx_apps.vhost.master
index 6fad927b688786127c3e59e9174d3730a8ff0c4b..ddde18d03ed3b96c7a2de072be1f4c1e6fdb604f 100644
--- a/install/tpl/nginx_apps.vhost.master
+++ b/install/tpl/nginx_apps.vhost.master
@@ -1,5 +1,5 @@
 server {
-        listen {apps_vhost_ip};
+        listen {apps_vhost_port};
         listen [::]:{apps_vhost_port};
         ssl {ssl_on};
         {ssl_comment}ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
diff --git a/install/tpl/nginx_ispconfig.vhost.master b/install/tpl/nginx_ispconfig.vhost.master
index 6102cef9eb5dc6e61104ef9f85a4d8d3333eeb0e..e45fc10b0817ef001879608e740b6b2da4ab86a5 100644
--- a/install/tpl/nginx_ispconfig.vhost.master
+++ b/install/tpl/nginx_ispconfig.vhost.master
@@ -1,6 +1,6 @@
 server {
         listen {vhost_port};
-        listen [::]:{vhost_port}
+        listen [::]:{vhost_port};
 		ssl {ssl_on};
 		{ssl_comment}ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
         {ssl_comment}ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;
@@ -81,4 +81,4 @@ server {
 #        location /webmail {
 #               rewrite ^/* /squirrelmail last;
 #        }
-}
\ No newline at end of file
+}